public GLFBORenderTexture(GLFBORTTManager manager, string name, GLSurfaceDesc target, bool writeGamma, int fsaa) : base(name, target, writeGamma, fsaa) { this._fbo = new GLFrameBufferObject(manager); // Bind target to surface 0 and initialise this._fbo.BindSurface(0, target); // Get attributes width = this._fbo.Width; height = this._fbo.Height; }
public GLFBORenderTexture( GLFBORTTManager manager, string name, GLSurfaceDesc target, bool writeGamma, int fsaa ) : base( name, target, writeGamma, fsaa ) { this._fbo = new GLFrameBufferObject( manager ); // Bind target to surface 0 and initialise this._fbo.BindSurface( 0, target ); // Get attributes width = this._fbo.Width; height = this._fbo.Height; }
/// <summary> /// Destroy a framebuffer object /// </summary> /// <param name="fbo"></param> public void DestroyFrameBufferObject(GLFrameBufferObject fbo) { fbo.Dispose(); fbo = null; }
/// <summary> /// Destroy a framebuffer object /// </summary> /// <param name="fbo"></param> public void DestroyFrameBufferObject( GLFrameBufferObject fbo ) { fbo.Dispose(); fbo = null; }