2 #include "stenciltest.h"
3 #include "stenciltest_backend.h"
10 unsigned get_gl_stencil_op(StencilOp op)
14 case KEEP: return GL_KEEP;
15 case SET_ZERO: return GL_ZERO;
16 case REPLACE: return GL_REPLACE;
17 case INCR: return GL_INCR;
18 case DECR: return GL_DECR;
19 case INVERT: return GL_INVERT;
20 case INCR_WRAP: return GL_INCR_WRAP;
21 case DECR_WRAP: return GL_DECR_WRAP;
22 default: throw invalid_argument("get_gl_stencil_op");