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

GetRenderTarget() public method

Get's the render target for a given render texture name.
You can use this to add listeners etc, but do not use it to update the targets manually or any other modifications, the compositor instance is in charge of this.
public GetRenderTarget ( string name ) : RenderTarget
name string name of the texture
return RenderTarget
		public RenderTarget GetRenderTarget( string name )
		{
			//Try simple texture
			Texture ret = null;
			if ( globalTextures.TryGetValue( name, out ret ) )
				return ret.GetBuffer().GetRenderTarget();

			//Try MRT
			MultiRenderTarget mrt = null;
			if ( globalMRTs.TryGetValue( name, out mrt ) )
				return mrt;

			throw new AxiomException( "Non-existent global texture name." );
		}