]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/predicate.cpp
Move all OpenGL-specific code to a separate directory
[libs/gl.git] / source / core / predicate.cpp
index 7b0c0587f845766dfc73c9f186e0b35501923903..6337e17401d94a6342f3ee0d8b67d5d1c6c2f36b 100644 (file)
@@ -7,22 +7,6 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-unsigned get_gl_predicate(Predicate pred)
-{
-       switch(pred)
-       {
-       case NEVER: return GL_NEVER;
-       case ALWAYS: return GL_ALWAYS;
-       case LESS: return GL_LESS;
-       case LEQUAL: return GL_LEQUAL;
-       case EQUAL: return GL_EQUAL;
-       case GREATER: return GL_GREATER;
-       case GEQUAL: return GL_GEQUAL;
-       case NOTEQUAL: return GL_NOTEQUAL;
-       default: throw invalid_argument("get_gl_predicate");
-       }
-}
-
 void operator>>(const LexicalConverter &conv, Predicate &pred)
 {
        const string &str = conv.get();