CODE:
osg::StateSet *stateSet = group->getOrCreateStateSet();
osg::StateSet::AttributeList& attributes = stateSet-
>getAttributeList();
osg::StateSet::AttributeList::iterator aitr = NULL;
for(aitr= attributes.begin(); aitr!=attributes.end(); ++aitr)
{
osg::StateAttribute::Type temp = (*aitr).first.first;
if(temp == osg::StateAttribute::COLORMASK)
{
osg::ColorMask mask = (*aitr).second.second;
This won't compile. How can I get the osg::ColorMask from the
osg::StateSet::AttributeList::iterator?
Thanks,
Judie
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org