Axiom.RenderSystems.OpenGL.GLFBORTTManager.Bind C# (CSharp) Method

Bind() public method

Bind a certain render target if it is a FBO. If it is not a FBO, bind the main frame buffer.
public Bind ( RenderTarget target ) : void
target Axiom.Graphics.RenderTarget
return void
		public override void Bind( RenderTarget target )
		{
			/// Check if the render target is in the rendertarget->FBO map
			GLFrameBufferObject fbo = (GLFrameBufferObject)target[ "FBO" ];
			if ( fbo != null )
				fbo.Bind();
			else
				// Old style context (window/pbuffer) or copying render texture
				Gl.glBindFramebufferEXT( Gl.GL_FRAMEBUFFER_EXT, 0 );
		}