Files
OpenSceneGraph/include/osg
Robert Osfield d044d135f5 From Jan Peciva, "please, find attached improved Stencil and StencilTwoSided classes.
Goals:
- to handle INCR_WRAP values nicely if not supported by OpenGL (old hardware)
- to support two side stenciling of OpenGL 2.0. Current implementation does not work on ATI as it uses Nvidia extension.

Ready for commit:
- Stencil and Stencil.cpp - please, review them

Ready with "hack":
- StencilTwoSided.cpp: please, see the line 113 in apply():

      glEnable(GL_STENCIL_TEST_TWO_SIDE);

This line used to be in getModeUsage() as

      usage.usesMode(GL_STENCIL_TEST_TWO_SIDE);

but it produces OpenGL errors on ATI as it is unknown value there (it is Nvidia extension).
Problems with my "glEnable" solution:
- it enables two side stenciling forever, and it will disturb any other single-side stenciling in the scene graph.
"
2010-09-15 09:56:16 +00:00
..
2009-02-11 10:41:55 +00:00
2006-07-18 15:21:48 +00:00
2010-04-30 19:41:24 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2007-05-14 16:16:22 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00
2008-05-12 10:16:40 +00:00
2006-07-18 15:21:48 +00:00
2009-07-28 06:00:23 +00:00
2010-02-25 18:03:14 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2008-08-18 10:47:43 +00:00
2009-01-30 10:55:28 +00:00
2009-01-30 10:55:28 +00:00
2009-01-07 10:32:59 +00:00
2010-04-30 19:41:24 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00