]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tests.cpp
Add scissor, stencil, alpha and depth test functions and constants
[libs/gl.git] / source / tests.cpp
diff --git a/source/tests.cpp b/source/tests.cpp
new file mode 100644 (file)
index 0000000..a744006
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include "tests.h"
+
+namespace Msp {
+namespace GL {
+
+void scissor(int left, int bottom, sizei width, sizei height)
+{
+       glScissor(left, bottom, width, height);
+}
+
+void alpha_func(Predicate func, float ref)
+{
+       glAlphaFunc(func, ref);
+}
+
+void depth_func(Predicate func)
+{
+       glDepthFunc(func);
+}
+
+} // namespace GL
+} // namespace Msp