X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Frenderbuffer.h;h=84ed3f28415fa95becfc47152e9a9344b479765f;hb=328b67fa59ce6736949732ea8ff4ef7c6675e200;hp=afc6ed204298a7bbcfe02d6c95a87af83c6a1bba;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/core/renderbuffer.h b/source/core/renderbuffer.h index afc6ed20..84ed3f28 100644 --- a/source/core/renderbuffer.h +++ b/source/core/renderbuffer.h @@ -1,7 +1,6 @@ #ifndef MSP_GL_RENDERBUFFER_H_ #define MSP_GL_RENDERBUFFER_H_ -#include "bindable.h" #include "pixelformat.h" namespace Msp { @@ -16,7 +15,7 @@ provide a capability for multisampling, which is not available in textures. Requires the GL_EXT_framebuffer_object extension. Multisample renderbuffers additionally require the GL_EXT_framebuffer_multisample extension. */ -class Renderbuffer: public Bindable +class Renderbuffer { private: unsigned id; @@ -36,7 +35,7 @@ public: /** Returns the maximum supported sample count for multisampling. If multisampling is not supported, returns 0. */ - static unsigned get_max_samples(); + DEPRECATED static unsigned get_max_samples(); /** Allocates multisample storage for the renderbuffer. All attachments in a framebuffer must have the same number of samples. To transfer the @@ -44,9 +43,7 @@ public: functions.*/ void storage_multisample(unsigned samples, PixelFormat fmt, unsigned wd, unsigned ht); - void bind() const; - - static void unbind(); + void set_debug_name(const std::string &); }; } // namespace GL