]> git.tdb.fi Git - libs/gl.git/blob - source/core/predicate.h
Make the TextureCubeFace enum independent of OpenGL constants
[libs/gl.git] / source / core / predicate.h
1 #ifndef MSP_GL_PREDICATE_H_
2 #define MSP_GL_PREDICATE_H_
3
4 #include <msp/strings/lexicalcast.h>
5 #include "gl.h"
6
7 namespace Msp {
8 namespace GL {
9
10 enum Predicate
11 {
12         NEVER,
13         ALWAYS,
14         LESS,
15         LEQUAL,
16         EQUAL,
17         GREATER,
18         GEQUAL,
19         NOTEQUAL
20 };
21
22 GLenum get_gl_predicate(Predicate);
23
24 void operator>>(const LexicalConverter &, Predicate &);
25 void operator<<(LexicalConverter &, Predicate);
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif