3 This file is part of libmspgl
4 Copyright © 2007, 2009-2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_RENDERBUFFER_H_
9 #define MSP_GL_RENDERBUFFER_H_
12 #include "pixelformat.h"
18 A Renderbuffer contains a single renderable image. It can be attached to a
19 Framebuffer to provide a logical buffer that is required to render the scene
20 correctly but that is not needed as a texture later.
22 Requires the GL_EXT_framebuffer_object extension.
24 class Renderbuffer: public Bindable<Renderbuffer>
35 unsigned get_id() const { return id; }
36 unsigned get_width() const { return width; }
37 unsigned get_height() const { return height; }
39 void storage(PixelFormat fmt, unsigned width, unsigned height);
40 void storage_multisample(unsigned, PixelFormat fmt, unsigned, unsigned);