X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fstencil.h;fp=source%2Fstencil.h;h=6efb057776365cc2b8122d4e030687b21306be02;hp=0000000000000000000000000000000000000000;hb=0f1c018d65658ae564881649443fde3f7d2182a8;hpb=c1405286754104ddc044dddbb0a3505a9a5e3d4a diff --git a/source/stencil.h b/source/stencil.h new file mode 100644 index 00000000..6efb0577 --- /dev/null +++ b/source/stencil.h @@ -0,0 +1,41 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_GL_STENCIL_H_ +#define MSP_GL_STENCIL_H_ + +#include +#include "predicate.h" +#include "types.h" + +namespace Msp { +namespace GL { + +enum +{ + STENCIL_TEST = GL_STENCIL_TEST +}; + +enum StencilOp +{ + KEEP = GL_KEEP, + SET_ZERO = GL_ZERO, + REPLACE = GL_REPLACE, + INCR = GL_INCR, + DECR = GL_DECR, + INVERT = GL_INVERT, + INCR_WRAP = GL_INCR_WRAP, + DECR_WRAP = GL_DECR_WRAP +}; + +void stencil_func(Predicate func, int ref, uint mask); +void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass); + +} // namespace GL +} // namespace Msp + +#endif