Inheritance: IDisposable
Example #1
0
 public void DrawFrameBuffer(FrameBuffer frameBuffer, float x, float y)
 {
     //draw frame buffer into specific position
     glesTextureShader.Render(frameBuffer.TextureId, x, y, frameBuffer.Width, frameBuffer.Height);
 }
Example #2
0
 public void DetachFrameBuffer(bool updateTextureResult = true)
 {
     if (_currentFrameBuffer != null)
     {
         if (updateTextureResult)
         {
             _currentFrameBuffer.UpdateTexture();
         }
         _currentFrameBuffer.ReleaseCurrent();
     }
     _currentFrameBuffer = null;
 }
Example #3
0
 public void DrawFrameBuffer(FrameBuffer frameBuffer, float x, float y)
 {
     //draw frame buffer into specific position
     glesTextureShader.Render(frameBuffer.TextureId, x, y, frameBuffer.Width, frameBuffer.Height);
 }
Example #4
0
 public void AttachFrameBuffer(FrameBuffer frameBuffer)
 {
     DetachFrameBuffer(true);
     if (frameBuffer != null)
     {
         this._currentFrameBuffer = frameBuffer;
         frameBuffer.MakeCurrent();
     }
 }