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

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

Frees the texture object, but leaves the structure so it can be reloaded.
public Purge ( ) : void
Результат void
		public void Purge()
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			if(this.IsLoaded == true)
			{
				// TODO: because the content manager doesn't actually remove the texture, we don't support
				// purging/reloading right now.
				idConsole.Warning("TODO: _texture.Dispose();");
				_texture = null;
			}

			// clear all the current binding caches, so the next bind will do a real one
			idE.RenderSystem.ClearTextureUnits();
		}