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