protected override void load()
{
// create a render texture if need be
if ( ( Usage & TextureUsage.RenderTarget ) == TextureUsage.RenderTarget )
{
CreateInternalResources();
return;
}
// create a regular texture
switch ( this.TextureType )
{
case TextureType.OneD:
case TextureType.TwoD:
this.LoadNormalTexture();
break;
case TextureType.ThreeD:
this.LoadVolumeTexture();
break;
case TextureType.CubeMap:
this.LoadCubeTexture();
break;
default:
throw new Exception( "Unsupported texture type." );
}
}