]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tests.h
Add scissor, stencil, alpha and depth test functions and constants
[libs/gl.git] / source / tests.h
diff --git a/source/tests.h b/source/tests.h
new file mode 100644 (file)
index 0000000..0fa05b4
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_TESTS_H_
+#define MSP_GL_TESTS_H_
+
+#include <GL/gl.h>
+#include "predicate.h"
+#include "types.h"
+
+namespace Msp {
+namespace GL {
+
+enum
+{
+       SCISSOR_TEST = GL_SCISSOR_TEST,
+       ALPHA_TEST   = GL_ALPHA_TEST,
+       DEPTH_TEST   = GL_DEPTH_TEST
+};
+
+void scissor(int left, int bottom, sizei width, sizei height);
+
+void alpha_func(Predicate func, float ref);
+
+void depth_func(Predicate func);
+
+} // namespace GL
+} // namespace Msp
+
+#endif