Example #1
0
		public GLESFBORenderTexture( GLESFBORTTManager manager, string name, GLESSurfaceDescription target, bool writeGamma, int fsaa )
			: base( name, target, writeGamma, fsaa )
		{
			this._fbo = new GLESFrameBufferObject( manager, fsaa );
			GLESConfig.GlCheckError( this );

			Width = _fbo.Width;
			Height = _fbo.Height;
		}
Example #2
0
 /// <summary>
 /// </summary>
 /// <param name="manager"> </param>
 /// <param name="fsaa"> </param>
 public GLESFrameBufferObject(GLESFBORTTManager manager, int fsaa)
 {
     /// Generate framebuffer object
     OpenGLOES.GenFramebuffers(1, ref this._fb);
     GLESConfig.GlCheckError(this);
     this._depth   = new GLESSurfaceDescription();
     this._stencil = new GLESSurfaceDescription();
     for (int x = 0; x < Configuration.Config.MaxMultipleRenderTargets; x++)
     {
         this._color[x] = new GLESSurfaceDescription();
     }
 }
		/// <summary>
		/// </summary>
		/// <param name="manager"> </param>
		/// <param name="name"> </param>
		public GLESFBOMultiRenderTarget( GLESFBORTTManager manager, string name )
			: base( name )
		{
			this._fbo = new GLESFrameBufferObject( manager, 0 );
		}
		/// <summary>
		/// </summary>
		/// <param name="manager"> </param>
		/// <param name="fsaa"> </param>
		public GLESFrameBufferObject( GLESFBORTTManager manager, int fsaa )
		{
			/// Generate framebuffer object
			OpenGLOES.GenFramebuffers( 1, ref this._fb );
			GLESConfig.GlCheckError( this );
			this._depth = new GLESSurfaceDescription();
			this._stencil = new GLESSurfaceDescription();
			for ( int x = 0; x < Configuration.Config.MaxMultipleRenderTargets; x++ )
			{
				this._color[ x ] = new GLESSurfaceDescription();
			}
		}
 /// <summary>
 /// </summary>
 /// <param name="manager"> </param>
 /// <param name="name"> </param>
 public GLESFBOMultiRenderTarget(GLESFBORTTManager manager, string name)
     : base(name)
 {
     this._fbo = new GLESFrameBufferObject(manager, 0);
 }