]> git.tdb.fi Git - libs/gl.git/blobdiff - source/framebuffer.h
Add post-processing effect framework
[libs/gl.git] / source / framebuffer.h
index 8563d2f98418d0f315720a9e4b734a3dc6c58817..ce36212528bb8ea5f2c5d9863fc61cb3ec810f73 100644 (file)
@@ -8,7 +8,7 @@ Distributed under the LGPL
 #ifndef MSP_GL_FRAMEBUFFER_H_
 #define MSP_GL_FRAMEBUFFER_H_
 
-#include <GL/gl.h>
+#include "gl.h"
 #include "types.h"
 
 namespace Msp {
@@ -55,7 +55,7 @@ class Framebuffer
 private:
        uint id;
 
-       static const Framebuffer *current;
+       static const Framebuffer *cur_fbo;
 
 public:
        Framebuffer();
@@ -73,6 +73,7 @@ public:
        */
        FramebufferStatus check_status() const;
 
+       static const Framebuffer *current();
        static void unbind();
 private:
        void maybe_bind() const;