Axiom.RenderSystems.OpenGLES.GLESFBOMultiRenderTarget.BindSurface C# (CSharp) Method

BindSurface() public method

public BindSurface ( int attachment, RenderTexture target ) : void
attachment int
target Axiom.Graphics.RenderTexture
return void
		public override void BindSurface( int attachment, RenderTexture target )
		{
			/// Check if the render target is in the rendertarget->FBO map
			GLESFrameBufferObject fbobj = target[ "FBO" ] as GLESFrameBufferObject;
			Utilities.Contract.Requires( fbobj != null );
			_fbo.BindSurface( attachment, fbobj.GetSurface( 0 ) );
			GLESConfig.GlCheckError( this );

			Width = _fbo.Width;
			Height = _fbo.Height;
		}