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