Added support for stencil GL_INCR_WRAP and GL_DECR_WRAP operations

This commit is contained in:
Robert Osfield
2007-01-18 17:00:42 +00:00
parent d60d04c8c4
commit ba9e355550
2 changed files with 13 additions and 1 deletions

View File

@@ -18,6 +18,12 @@
namespace osg {
#ifndef GL_INCR_WRAP
#define GL_INCR_WRAP 0x8507
#define GL_DECR_WRAP 0x8508
#endif
/** Encapsulate OpenGL glStencilFunc/Op/Mask functions.
*/
class OSG_EXPORT Stencil : public StateAttribute
@@ -102,7 +108,9 @@ class OSG_EXPORT Stencil : public StateAttribute
REPLACE = GL_REPLACE,
INCR = GL_INCR,
DECR = GL_DECR,
INVERT = GL_INVERT
INVERT = GL_INVERT,
INCR_WRAP = GL_INCR_WRAP,
DECR_WRAP = GL_DECR_WRAP
};
/** set the operations to apply when the various stencil and depth