X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fframebuffer.h;h=b4f43f77f47473a12381eb499eb13a3c6d658c13;hb=6a4907898281b738111e0c6527cc46f8810dc123;hp=9fe4cd8bd028f1d929ead4111ddcd8f11126d619;hpb=98c810b6d2256aa65986bbde12c38917678121bb;p=libs%2Fgl.git diff --git a/source/framebuffer.h b/source/framebuffer.h index 9fe4cd8b..b4f43f77 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -9,8 +9,8 @@ Distributed under the LGPL #define MSP_GL_FRAMEBUFFER_H_ #include +#include "bindable.h" #include "gl.h" -#include "types.h" namespace Msp { namespace GL { @@ -74,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 @@ -92,12 +92,11 @@ private: Attachment &operator=(Texture &); }; - uint id; + unsigned id; std::vector attachments; unsigned width; unsigned height; - static const Framebuffer *cur_fbo; static int sys_viewport[4]; public: @@ -117,7 +116,6 @@ public: */ FramebufferStatus check_status() const; - static const Framebuffer *current(); static void unbind(); private: void maybe_bind() const;