/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="target"></param> /// <param name="writeGamma"></param> /// <param name="fsaa"></param> public GLESPBRenderTexture( GLESPBRTTManager manager, string name, GLESSurfaceDescription target, bool writeGamma, int fsaa ) : base( name, target, writeGamma, fsaa ) { this._manager = manager; this._pbFormat = PixelUtil.GetComponentType( target.Buffer.Format ); this._manager.RequestPBuffer( _pbFormat, Width, Height ); }
/// <summary> /// </summary> /// <param name="name"> </param> /// <param name="target"> </param> /// <param name="writeGamma"> </param> /// <param name="fsaa"> </param> public GLESPBRenderTexture(GLESPBRTTManager manager, string name, GLESSurfaceDescription target, bool writeGamma, int fsaa) : base(name, target, writeGamma, fsaa) { this._manager = manager; this._pbFormat = PixelUtil.GetComponentType(target.Buffer.Format); this._manager.RequestPBuffer(this._pbFormat, Width, Height); }
protected override void dispose(bool disposeManagedResources) { if (!IsDisposed) { if (disposeManagedResources) { this._manager.ReleasePBuffer(this._pbFormat); this._manager = null; } } base.dispose(disposeManagedResources); }
protected override void dispose( bool disposeManagedResources ) { if ( !IsDisposed ) { if ( disposeManagedResources ) { this._manager.ReleasePBuffer( _pbFormat ); _manager = null; } } base.dispose( disposeManagedResources ); }