]> git.tdb.fi Git - libs/gl.git/blobdiff - source/stencil.cpp
Add scissor, stencil, alpha and depth test functions and constants
[libs/gl.git] / source / stencil.cpp
diff --git a/source/stencil.cpp b/source/stencil.cpp
new file mode 100644 (file)
index 0000000..a050631
--- /dev/null
@@ -0,0 +1,24 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include "stencil.h"
+
+namespace Msp {
+namespace GL {
+
+void stencil_func(Predicate func, int ref, uint mask)
+{
+       glStencilFunc(func, ref, mask);
+}
+
+void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass)
+{
+       glStencilOp(sfail, dfail, dpass);
+}
+
+} // namespace GL
+} // namespace Msp