X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframebuffer.h;h=48888459da363f7b24be4e7edd25aecbc0d00a8f;hp=acb0d3ee918b5fa946549fc12484027fc9a26505;hb=006bdb4f8660098fc524dcca80b24c943c65b249;hpb=fc55a95ad69fbaaefde3071712bf36a470970bc0 diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index acb0d3ee..48888459 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -2,6 +2,7 @@ #define MSP_GL_FRAMEBUFFER_H_ #include +#include "color.h" #include "frameformat.h" #include "gl.h" #include "texturecube.h" @@ -128,6 +129,19 @@ public: static Framebuffer &system(); }; + +union ClearValue +{ + Color color; + struct + { + float depth; + int stencil; + } depth_stencil; + + ClearValue(): color(0.0f, 0.0f, 0.0f, 0.0f) { } +}; + inline BufferBits operator|(BufferBits a, BufferBits b) { return static_cast(static_cast(a)|static_cast(b)); }