]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/predicate.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / predicate.h
index 13c22e84dc0b4300ad98bd268179aebaa8937e1d..38053d03f53a40541b3c9570d2b4297318ef10ba 100644 (file)
@@ -2,21 +2,20 @@
 #define MSP_GL_PREDICATE_H_
 
 #include <msp/strings/lexicalcast.h>
-#include "gl.h"
 
 namespace Msp {
 namespace GL {
 
-enum Predicate
+enum Predicate: std::uint8_t
 {
-       NEVER    = GL_NEVER,
-       ALWAYS   = GL_ALWAYS,
-       LESS     = GL_LESS,
-       LEQUAL   = GL_LEQUAL,
-       EQUAL    = GL_EQUAL,
-       GREATER  = GL_GREATER,
-       GEQUAL   = GL_GEQUAL,
-       NOTEQUAL = GL_NOTEQUAL
+       NEVER,
+       ALWAYS,
+       LESS,
+       LEQUAL,
+       EQUAL,
+       GREATER,
+       GEQUAL,
+       NOTEQUAL
 };
 
 void operator>>(const LexicalConverter &, Predicate &);
@@ -25,4 +24,6 @@ void operator<<(LexicalConverter &, Predicate);
 } // namespace GL
 } // namespace Msp
 
+#include "predicate_backend.h"
+
 #endif