X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frenderbuffer.h;h=7f9d7a422a0f5f6378075f2a0ed34622ad06f585;hb=aa9884e69bc543682d1fe36ec5d054fdf11bcfac;hp=040dad44bfdbaf896194d1c9bdf9adf579d0b768;hpb=98c810b6d2256aa65986bbde12c38917678121bb;p=libs%2Fgl.git diff --git a/source/renderbuffer.h b/source/renderbuffer.h index 040dad44..7f9d7a42 100644 --- a/source/renderbuffer.h +++ b/source/renderbuffer.h @@ -1,15 +1,15 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007, 2009-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #ifndef MSP_GL_RENDERBUFFER_H_ #define MSP_GL_RENDERBUFFER_H_ +#include "bindable.h" #include "pixelformat.h" -#include "types.h" namespace Msp { namespace GL { @@ -21,24 +21,27 @@ correctly but that is not needed as a texture later. Requires the GL_EXT_framebuffer_object extension. */ -class Renderbuffer +class Renderbuffer: public Bindable { private: - uint id; - sizei width; - sizei height; + unsigned id; + unsigned width; + unsigned height; public: Renderbuffer(); ~Renderbuffer(); - uint get_id() const { return id; } - sizei get_width() const { return width; } - sizei get_height() const { return height; } + unsigned get_id() const { return id; } + 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, sizei width, sizei height); + static void unbind(); }; } // namespace GL