X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.h;h=b4f43f77f47473a12381eb499eb13a3c6d658c13;hb=6a4907898281b738111e0c6527cc46f8810dc123;hp=7c88b4cd105a7def770fc8d0b3ea404c6bac051c;hpb=ceae2a27dfc58310c5bab7e3aa3fedf0fa9a1f49;p=libs%2Fgl.git diff --git a/source/framebuffer.h b/source/framebuffer.h index 7c88b4cd..b4f43f77 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -9,6 +9,7 @@ Distributed under the LGPL #define MSP_GL_FRAMEBUFFER_H_ #include +#include "bindable.h" #include "gl.h" namespace Msp { @@ -73,7 +74,7 @@ least one image must be attached for the framebuffer to be usable. Requires the GL_EXT_framebuffer_object extension. */ -class Framebuffer +class Framebuffer: public Bindable { private: struct Attachment @@ -96,7 +97,6 @@ private: unsigned width; unsigned height; - static const Framebuffer *cur_fbo; static int sys_viewport[4]; public: @@ -116,7 +116,6 @@ public: */ FramebufferStatus check_status() const; - static const Framebuffer *current(); static void unbind(); private: void maybe_bind() const;