]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Completely hide OpenGL from the public headers
[libs/gl.git] / source / core / framebuffer.h
index 48888459da363f7b24be4e7edd25aecbc0d00a8f..89407e8ba69b270bcc4f707eed89dc81a6b52028 100644 (file)
@@ -4,12 +4,7 @@
 #include <vector>
 #include "color.h"
 #include "frameformat.h"
-#include "gl.h"
 #include "texturecube.h"
-#include <msp/gl/extensions/arb_geometry_shader4.h>
-#include <msp/gl/extensions/ext_framebuffer_multisample.h>
-#include <msp/gl/extensions/ext_framebuffer_object.h>
-#include <msp/gl/extensions/nv_fbo_color_attachments.h>
 
 namespace Msp {
 namespace GL {
@@ -20,13 +15,6 @@ class Texture2DMultisample;
 class Texture3D;
 class WindowView;
 
-enum BufferBits
-{
-       COLOR_BUFFER_BIT   = GL_COLOR_BUFFER_BIT,
-       DEPTH_BUFFER_BIT   = GL_DEPTH_BUFFER_BIT,
-       STENCIL_BUFFER_BIT = GL_STENCIL_BUFFER_BIT
-};
-
 class framebuffer_incomplete: public std::runtime_error
 {
 public:
@@ -142,9 +130,6 @@ union ClearValue
        ClearValue(): color(0.0f, 0.0f, 0.0f, 0.0f) { }
 };
 
-inline BufferBits operator|(BufferBits a, BufferBits b)
-{ return static_cast<BufferBits>(static_cast<int>(a)|static_cast<int>(b)); }
-
 } // namespace GL
 } // namespace Msp