HI All,

> Since then a decade and half has passed and looking at modern docs for
> OpenGL the glEnable/glDisable and glEnablei/glDisablei now discuss OpenGL
> capability rather than modes.  I guess the new naming sits better modern
> shader centric functionality.   Given this perhaps if one is to have a
> single class then perhaps one should name it osg::Capability.
>
> The usage mode for the new class/classes would be something like:
>
>    stateset->setAttribute(new osg::Enablei(GL_BLEND, 0));
>    stateset->setAttribute(new osg::Disable(GL_SCISSOR_TEST,1));
>
>
I have now checked in a first cut of the above approach.  The new Enablei
and Disablei classes can be found in a new include/osg/Capability header.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to