]> git.tdb.fi Git - libs/gl.git/blob - source/stencil.h
Allow tagging objects in a scene file for retrieval after loading
[libs/gl.git] / source / stencil.h
1 #ifndef MSP_GL_STENCIL_H_
2 #define MSP_GL_STENCIL_H_
3
4 #include "gl.h"
5 #include "predicate.h"
6
7 namespace Msp {
8 namespace GL {
9
10 enum
11 {
12         STENCIL_TEST = GL_STENCIL_TEST
13 };
14
15 enum StencilOp
16 {
17         KEEP      = GL_KEEP,
18         SET_ZERO  = GL_ZERO,
19         REPLACE   = GL_REPLACE,
20         INCR      = GL_INCR,
21         DECR      = GL_DECR,
22         INVERT    = GL_INVERT,
23         INCR_WRAP = GL_INCR_WRAP,
24         DECR_WRAP = GL_DECR_WRAP
25 };
26
27 void stencil_func(Predicate func, int ref, unsigned mask);
28 void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass);
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif