]> git.tdb.fi Git - libs/gl.git/blob - source/tests.h
0fa05b46562abc36c5bce18d68ab88d732adea52
[libs/gl.git] / source / tests.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_TESTS_H_
9 #define MSP_GL_TESTS_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         SCISSOR_TEST = GL_SCISSOR_TEST,
21         ALPHA_TEST   = GL_ALPHA_TEST,
22         DEPTH_TEST   = GL_DEPTH_TEST
23 };
24
25 void scissor(int left, int bottom, sizei width, sizei height);
26
27 void alpha_func(Predicate func, float ref);
28
29 void depth_func(Predicate func);
30
31 } // namespace GL
32 } // namespace Msp
33
34 #endif