Skip to content

Instantly share code, notes, and snippets.

@beugnen
beugnen / MyDualFramebufferView.cpp
Created May 20, 2012 00:22
Creating a Render to Texture Secondary Framebuffer for iOS OpenGL ES 2
GLsizei cxFBO;
GLsizei cyFBO;
GLuint _frameBufferID;
GLuint _colorRenderBuffer;
GLuint _depthRenderBuffer;
GLuint _fboTextureID;
void MyDualFramebufferView::Resize(GLfloat width, GLfloat height, GLfloat scale)
{
_scale = scale;