]> git.tdb.fi Git - libs/gl.git/blob - source/stencil.h
Add scissor, stencil, alpha and depth test functions and constants
[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/gl.h>
12 #include "predicate.h"
13 #include "types.h"
14
15 namespace Msp {
16 namespace GL {
17
18 enum
19 {
20         STENCIL_TEST = GL_STENCIL_TEST
21 };
22
23 enum StencilOp
24 {
25         KEEP      = GL_KEEP,
26         SET_ZERO  = GL_ZERO,
27         REPLACE   = GL_REPLACE,
28         INCR      = GL_INCR,
29         DECR      = GL_DECR,
30         INVERT    = GL_INVERT,
31         INCR_WRAP = GL_INCR_WRAP,
32         DECR_WRAP = GL_DECR_WRAP
33 };
34
35 void stencil_func(Predicate func, int ref, uint mask);
36 void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass);
37
38 } // namespace GL
39 } // namespace Msp
40
41 #endif