Description
On Moodle,
there is a helper class called CFrameBufferObject
It
handles all these operations for you!
CFramebuffer *m_pFBO;
m_pFBO->CreateFramebuffer(width, height);
Note:
to unbind a framebuffer, simply call
glBindFramebuffer(GL_FRAMEBUFFER, 0);