public void Reload(bool checkPrecompressed, bool force)
{
if(this.Disposed == true)
{
throw new ObjectDisposedException(this.GetType().Name);
}
// always regenerate functional images
if(_generator != null)
{
idConsole.DeveloperWriteLine("regenerating {0}.", this.Name);
_generator(this);
}
else
{
// check file times
if(force == false)
{
//ID_TIME_T current;
if(_cubeFiles != CubeFiles.TwoD)
{
idConsole.Warning("TODO: R_LoadCubeImages");
//R_LoadCubeImages(imgName, cubeFiles, NULL, NULL, ¤t);
}
else
{
// get the current values
idConsole.Warning("TODO: R_LoadImageProgram");
//R_LoadImageProgram(imgName, NULL, NULL, NULL, ¤t);
}
/*if(current <= timestamp)
{
return;
}*/
}
idConsole.DeveloperWriteLine("reloading {0}.", this.Name);
Purge();
// force no precompressed image check, which will cause it to be reloaded
// from source, and another precompressed file generated.
// Load is from the front end, so the back end must be synced
ActuallyLoadImage(checkPrecompressed, false);
}
}
#endregion