X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fframebuffer.h;h=3054bd646b3e4d4709c4ee7ec8a96a5b20bdfa7a;hp=1dd8c96f219f946b42568e4c34d052df5d8c6a53;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=18f611802019c809d4257f6d1c0e341d3a645b1a diff --git a/source/framebuffer.h b/source/framebuffer.h index 1dd8c96f..3054bd64 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -5,6 +5,8 @@ #include "bindable.h" #include "gl.h" #include "texturecube.h" +#include +#include #include #include @@ -34,6 +36,9 @@ enum FramebufferStatus FRAMEBUFFER_INCOMPLETE_FORMATS = GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT, FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER, FRAMEBUFFER_INCOMPLETE_READ_BUFFER = GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER, + FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE, + FRAMEBUFFER_INCOMPLETE_LAYER_COUNT = GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB, + FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, FRAMEBUFFER_UNSUPPORTED = GL_FRAMEBUFFER_UNSUPPORTED, FRAMEBUFFER_COMPLETE = GL_FRAMEBUFFER_COMPLETE }; @@ -133,6 +138,7 @@ public: void viewport(int, int, unsigned, unsigned); void reset_viewport(); + void clear(); void clear(BufferBits); /** Blits a region from another framebuffer into this one. If the source