X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frenderbuffer.h;h=b88db17a8a25a6417835290c1caf8fc0273d3712;hp=b7320929f2f977c98fec344eee7a5ff3ded1bbc8;hb=42ace9ac1350d3ae009bdd2fb335ac1e57d1b36b;hpb=95e926ee2bb662fe8795546db4bdebd1a0aff85b diff --git a/source/renderbuffer.h b/source/renderbuffer.h index b7320929..b88db17a 100644 --- a/source/renderbuffer.h +++ b/source/renderbuffer.h @@ -8,6 +8,7 @@ Distributed under the LGPL #ifndef MSP_GL_RENDERBUFFER_H_ #define MSP_GL_RENDERBUFFER_H_ +#include "bindable.h" #include "pixelformat.h" namespace Msp { @@ -20,7 +21,7 @@ correctly but that is not needed as a texture later. Requires the GL_EXT_framebuffer_object extension. */ -class Renderbuffer +class Renderbuffer: public Bindable { private: unsigned id; @@ -35,9 +36,11 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } + void storage(PixelFormat fmt, unsigned width, unsigned height); + void bind() const; - void storage(PixelFormat fmt, unsigned width, unsigned height); + static void unbind(); }; } // namespace GL