X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fstenciltest.cpp;h=db1a5c0e2a0d161b23abaf10497d1321f1541350;hp=57a191cfad95f83620b5ac1f35487adf9d49cc2f;hb=7ef75a4c4dbfc437e466381dd67c23357e607b82;hpb=24b24e2203c776aacd9744bb947f5cf47b03d328 diff --git a/source/core/stenciltest.cpp b/source/core/stenciltest.cpp index 57a191cf..db1a5c0e 100644 --- a/source/core/stenciltest.cpp +++ b/source/core/stenciltest.cpp @@ -1,6 +1,5 @@ #include #include -#include "gl.h" #include "stenciltest.h" using namespace std; @@ -8,16 +7,6 @@ using namespace std; namespace Msp { namespace GL { -StencilTest::StencilTest(): - enabled(false), - compare(ALWAYS), - stencil_fail_op(KEEP), - depth_fail_op(KEEP), - depth_pass_op(KEEP), - reference(0) -{ } - - StencilTest::Loader::Loader(StencilTest &st): ObjectLoader(st) { @@ -40,22 +29,6 @@ void StencilTest::Loader::actions(StencilOp sf, StencilOp df, StencilOp dp) } -unsigned get_gl_stencil_op(StencilOp op) -{ - switch(op) - { - case KEEP: return GL_KEEP; - case SET_ZERO: return GL_ZERO; - case REPLACE: return GL_REPLACE; - case INCR: return GL_INCR; - case DECR: return GL_DECR; - case INVERT: return GL_INVERT; - case INCR_WRAP: return GL_INCR_WRAP; - case DECR_WRAP: return GL_DECR_WRAP; - default: throw invalid_argument("get_gl_stencil_op"); - } -} - void operator>>(const LexicalConverter &conv, StencilOp &op) { const string &str = conv.get();