Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
 /// <summary>
 /// Destroy a framebuffer object
 /// </summary>
 /// <param name="fbo"></param>
 public void DestroyFrameBufferObject(GLFrameBufferObject fbo)
 {
     fbo.Dispose();
     fbo = null;
 }
Exemplo n.º 4
0
		/// <summary>
		/// Destroy a framebuffer object
		/// </summary>
		/// <param name="fbo"></param>
		public void DestroyFrameBufferObject( GLFrameBufferObject fbo )
		{
			fbo.Dispose();
			fbo = null;
		}