initTexture method

void initTexture(
  1. Texture texture
)

Implementation

void initTexture(Texture texture) {
  if ( texture is CubeTexture ) {
			textures.setTextureCube( texture, 0 );
		}
  else{
    textures.setTexture2D(texture, 0);
  }

  state.unbindTexture();
}