X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fpredicate.cpp;h=a1953733c676d3ccac0f449db4d9ce3c749dba4f;hp=7b0c0587f845766dfc73c9f186e0b35501923903;hb=HEAD;hpb=24b24e2203c776aacd9744bb947f5cf47b03d328 diff --git a/source/core/predicate.cpp b/source/core/predicate.cpp index 7b0c0587..a1953733 100644 --- a/source/core/predicate.cpp +++ b/source/core/predicate.cpp @@ -1,5 +1,4 @@ #include -#include "gl.h" #include "predicate.h" using namespace std; @@ -7,22 +6,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();