/* $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"
namespace Msp {
Requires the GL_EXT_framebuffer_object extension.
*/
-class Renderbuffer
+class Renderbuffer: public Bindable<Renderbuffer>
{
private:
unsigned 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, unsigned width, unsigned height);
+ static void unbind();
};
} // namespace GL