X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frenderbuffer.h;h=751374bd4a4258f70ca9afa74d1e16bf543b49a3;hb=refs%2Fheads%2Fmaster;hp=7f9d7a422a0f5f6378075f2a0ed34622ad06f585;hpb=7f888de83aa5398fafaa7661547ee80395377b5c;p=libs%2Fgl.git diff --git a/source/renderbuffer.h b/source/renderbuffer.h deleted file mode 100644 index 7f9d7a42..00000000 --- a/source/renderbuffer.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -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 { -namespace GL { - -/** -A Renderbuffer contains a single renderable image. It can be attached to a -Framebuffer to provide a logical buffer that is required to render the scene -correctly but that is not needed as a texture later. - -Requires the GL_EXT_framebuffer_object extension. -*/ -class Renderbuffer: public Bindable -{ -private: - unsigned id; - unsigned width; - unsigned height; - -public: - Renderbuffer(); - ~Renderbuffer(); - - 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; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp - -#endif