initTexture method
void
initTexture(
- Texture texture
Implementation
void initTexture(Texture texture) {
if (texture is CubeTexture) {
textures.setTextureCube( texture, 0 );
}
else if (texture is Data3DTexture ) {
textures.setTexture3D( texture, 0 );
}
else if ( texture is DataArrayTexture || texture is CompressedArrayTexture ) {
textures.setTexture2DArray( texture, 0 );
}
else{
textures.setTexture2D(texture, 0);
}
(state as AngleState).unbindTexture();
}