]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/predicate.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / core / predicate.h
diff --git a/source/core/predicate.h b/source/core/predicate.h
new file mode 100644 (file)
index 0000000..13c22e8
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef MSP_GL_PREDICATE_H_
+#define MSP_GL_PREDICATE_H_
+
+#include <msp/strings/lexicalcast.h>
+#include "gl.h"
+
+namespace Msp {
+namespace GL {
+
+enum Predicate
+{
+       NEVER    = GL_NEVER,
+       ALWAYS   = GL_ALWAYS,
+       LESS     = GL_LESS,
+       LEQUAL   = GL_LEQUAL,
+       EQUAL    = GL_EQUAL,
+       GREATER  = GL_GREATER,
+       GEQUAL   = GL_GEQUAL,
+       NOTEQUAL = GL_NOTEQUAL
+};
+
+void operator>>(const LexicalConverter &, Predicate &);
+void operator<<(LexicalConverter &, Predicate);
+
+} // namespace GL
+} // namespace Msp
+
+#endif