public void Bind()
{
if(this.Disposed == true)
{
throw new ObjectDisposedException(this.GetType().Name);
}
// load the image if necessary (FIXME: not SMP safe!).
if(this.IsLoaded == false)
{
/*if(_partialImage != null)
{
// if we have a partial image, go ahead and use that
_partialImage.Bind();
// start a background load of the full thing if it isn't already in the queue
if(_backgroundLoadInProgress == false)
{
StartBackgroundLoad();
}
return;
}*/
// load the image on demand here, which isn't our normal game operating mode
//ActuallyLoadImage(true, true); // check for precompressed, load is from back end
}
idE.RenderSystem.BindTexture(this);
}