X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fframebuffer.h;h=ce36212528bb8ea5f2c5d9863fc61cb3ec810f73;hb=119d9819ac9e9a8d274d2410beffe54e470485a3;hp=0dd8f5d79a5ab14c644e795350102a9dca980fff;hpb=a361efc05fcad11b2918f3cd7abdebe794b131d8;p=libs%2Fgl.git diff --git a/source/framebuffer.h b/source/framebuffer.h index 0dd8f5d7..ce362125 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -8,6 +8,7 @@ Distributed under the LGPL #ifndef MSP_GL_FRAMEBUFFER_H_ #define MSP_GL_FRAMEBUFFER_H_ +#include "gl.h" #include "types.h" namespace Msp { @@ -54,7 +55,7 @@ class Framebuffer private: uint id; - static const Framebuffer *current; + static const Framebuffer *cur_fbo; public: Framebuffer(); @@ -72,6 +73,7 @@ public: */ FramebufferStatus check_status() const; + static const Framebuffer *current(); static void unbind(); private: void maybe_bind() const;