5 #define GL_GLEXT_PROTOTYPES
6 #include <SDL_opengl.h>
12 * The "Screen" class handles managing the OS window (using SDL2).
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);
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;