11 * The "FrameBuffer" class represents an offscreen render target.
12 * FrameBuffer::Create needs to be called to initialise it; constructor is trivial
17 FrameBuffer() : m_render_texture(0), m_render_fbo(0), m_width(0), m_height(0) {}
18 ~FrameBuffer() { Destroy(); }
19 void Create(int w, int h);
21 void Bind(); // set as render target
22 void UnBind(); // set render target to screen
23 void Blit(); // blit this FrameBuffer to current render target
24 void Clear(float r=1.0, float g=1.0, float b=1.0, float a=1.0);
25 int GetWidth() { return m_width; }
26 int GetHeight() { return m_height; }
28 GLuint m_render_texture;