]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/stencil.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / core / stencil.h
diff --git a/source/core/stencil.h b/source/core/stencil.h
new file mode 100644 (file)
index 0000000..02f4ed3
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef MSP_GL_STENCIL_H_
+#define MSP_GL_STENCIL_H_
+
+#include "gl.h"
+#include "predicate.h"
+
+namespace Msp {
+namespace GL {
+
+enum
+{
+       STENCIL_TEST = GL_STENCIL_TEST
+};
+
+enum StencilOp
+{
+       KEEP      = GL_KEEP,
+       SET_ZERO  = GL_ZERO,
+       REPLACE   = GL_REPLACE,
+       INCR      = GL_INCR,
+       DECR      = GL_DECR,
+       INVERT    = GL_INVERT,
+       INCR_WRAP = GL_INCR_WRAP,
+       DECR_WRAP = GL_DECR_WRAP
+};
+
+void stencil_func(Predicate func, int ref, unsigned mask);
+void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass);
+
+} // namespace GL
+} // namespace Msp
+
+#endif