X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpredicate.cpp;h=6337e17401d94a6342f3ee0d8b67d5d1c6c2f36b;hb=df9119a9bf2d348a513c515ed92953353da97b54;hp=4afc6c0343ca89166283c6f3268c1bc9880c9d4f;hpb=669e9bfc18d2f5e28a9c715e1a69b7637a2d9c8b;p=libs%2Fgl.git diff --git a/source/core/predicate.cpp b/source/core/predicate.cpp index 4afc6c03..6337e174 100644 --- a/source/core/predicate.cpp +++ b/source/core/predicate.cpp @@ -1,4 +1,5 @@ #include +#include "gl.h" #include "predicate.h" using namespace std; @@ -6,22 +7,6 @@ using namespace std; namespace Msp { namespace GL { -GLenum 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();