On 10/18/06, Roger James <[EMAIL PROTECTED]> wrote:
Is there a method we can use to compare effects? Then we can traverse the
tree, name and store new effects, and then when we get down to a geometry
within a geode work out what effects are needed by the current inherited
state and check we can find them in the "library".

If you mean compare StateSet/StateAttribute and modes, yes
osg::StateSet and osg::StateAttribute have this built in - its the
compare method :-)

There is also a StateSet::merge method that allows you to compute what
the overall inherited state would be down onto geometry.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to