X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Frenderbuffer.h;h=977f2453af950df7600e6823448eae6fdd6c0d59;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hp=b7320929f2f977c98fec344eee7a5ff3ded1bbc8;hpb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;p=libs%2Fgl.git diff --git a/source/renderbuffer.h b/source/renderbuffer.h index b7320929..977f2453 100644 --- a/source/renderbuffer.h +++ b/source/renderbuffer.h @@ -1,13 +1,7 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_RENDERBUFFER_H_ #define MSP_GL_RENDERBUFFER_H_ +#include "bindable.h" #include "pixelformat.h" namespace Msp { @@ -20,7 +14,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 +29,12 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } + void storage(PixelFormat fmt, unsigned width, unsigned height); + void storage_multisample(unsigned, PixelFormat fmt, unsigned, unsigned); + void bind() const; - void storage(PixelFormat fmt, unsigned width, unsigned height); + static void unbind(); }; } // namespace GL