Axiom.Graphics.Compositor.dispose C# (CSharp) Method

dispose() protected method

Disposes of any resources used by this object.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void
		protected override void dispose( bool disposeManagedResources )
		{
			if ( !IsDisposed )
			{
				if ( disposeManagedResources )
				{
					this.RemoveAllTechniques();

					foreach ( KeyValuePair<string, MultiRenderTarget> item in globalMRTs )
					{
						item.Value.Dispose();
					}
					globalMRTs.Clear();

					foreach ( KeyValuePair<string, Texture> item in globalTextures )
					{
						item.Value.Dispose();
					}

				}

				// There are no unmanaged resources to release, but
				// if we add them, they need to be released here.
			}

			// If it is available, make the call to the
			// base class's Dispose(Boolean) method
			base.dispose( disposeManagedResources );
		}