コード例 #1
0
ファイル: GLFBORenderTexture.cs プロジェクト: bostich83/axiom
        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;
        }
コード例 #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;
		}
コード例 #3
0
ファイル: GLFBORTTManager.cs プロジェクト: axiom3d/axiom
 /// <summary>
 /// Destroy a framebuffer object
 /// </summary>
 /// <param name="fbo"></param>
 public void DestroyFrameBufferObject(GLFrameBufferObject fbo)
 {
     fbo.Dispose();
     fbo = null;
 }
コード例 #4
0
		/// <summary>
		/// Destroy a framebuffer object
		/// </summary>
		/// <param name="fbo"></param>
		public void DestroyFrameBufferObject( GLFrameBufferObject fbo )
		{
			fbo.Dispose();
			fbo = null;
		}