1 #ifndef MSP_GL_RENDERBUFFER_H_
2 #define MSP_GL_RENDERBUFFER_H_
5 #include "pixelformat.h"
11 A Renderbuffer contains a single renderable image. It can be attached to a
12 Framebuffer to provide a logical buffer that is required to render the scene
13 correctly but that is not needed as a texture later.
15 Requires the GL_EXT_framebuffer_object extension.
17 class Renderbuffer: public Bindable<Renderbuffer>
28 unsigned get_id() const { return id; }
29 unsigned get_width() const { return width; }
30 unsigned get_height() const { return height; }
32 void storage(PixelFormat fmt, unsigned width, unsigned height);
33 void storage_multisample(unsigned, PixelFormat fmt, unsigned, unsigned);