]> git.tdb.fi Git - libs/gl.git/blob - source/stencil.h
30ad2570b40ba1207a079eed07684a05de4dcda0
[libs/gl.git] / source / stencil.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_STENCIL_H_
9 #define MSP_GL_STENCIL_H_
10
11 #include "gl.h"
12 #include "predicate.h"
13
14 namespace Msp {
15 namespace GL {
16
17 enum
18 {
19         STENCIL_TEST = GL_STENCIL_TEST
20 };
21
22 enum StencilOp
23 {
24         KEEP      = GL_KEEP,
25         SET_ZERO  = GL_ZERO,
26         REPLACE   = GL_REPLACE,
27         INCR      = GL_INCR,
28         DECR      = GL_DECR,
29         INVERT    = GL_INVERT,
30         INCR_WRAP = GL_INCR_WRAP,
31         DECR_WRAP = GL_DECR_WRAP
32 };
33
34 void stencil_func(Predicate func, int ref, unsigned mask);
35 void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass);
36
37 } // namespace GL
38 } // namespace Msp
39
40 #endif