idTech4.Renderer.idImage.Reload C# (CSharp) Метод

Reload() публичный Метод

public Reload ( bool checkPrecompressed, bool force ) : void
checkPrecompressed bool
force bool
Результат void
		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, &current);
					}
					else
					{
						// get the current values
						idConsole.Warning("TODO: R_LoadImageProgram");
						//R_LoadImageProgram(imgName, NULL, NULL, NULL, &current);
					}

					/*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