Inheritance: IDisposable
Esempio n. 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);
 }
Esempio n. 2
0
 public void DetachFrameBuffer(bool updateTextureResult = true)
 {
     if (_currentFrameBuffer != null)
     {
         if (updateTextureResult)
         {
             _currentFrameBuffer.UpdateTexture();
         }
         _currentFrameBuffer.ReleaseCurrent();
     }
     _currentFrameBuffer = null;
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public void AttachFrameBuffer(FrameBuffer frameBuffer)
 {
     DetachFrameBuffer(true);
     if (frameBuffer != null)
     {
         this._currentFrameBuffer = frameBuffer;
         frameBuffer.MakeCurrent();
     }
 }