public void BindSurface( int attachment, GLSurfaceDesc target ) { //assert( attachment < OGRE_MAX_MULTIPLE_RENDER_TARGETS ); _color[ attachment ] = target; // Re-initialise if ( _color[ 0 ].Buffer != null ) _initialize(); }
public GLFBORenderTexture( GLFBORTTManager manager, string name, GLSurfaceDesc target, bool writeGamma, int fsaa ) : base( name, target, writeGamma, fsaa ) { _fbo = new GLFrameBufferObject( manager ); // Bind target to surface 0 and initialise _fbo.BindSurface( 0, target ); // Get attributes width = _fbo.Width; height = _fbo.Height; }