Hi One things I noticed is you do 'osg::ColorMask mask'. This is wrong you need this to be a pointer to an osg::ColorMask instance
FYI If you post a question my code won't compile at least provide the compilation errors... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Judie Sent: Thursday, June 12, 2008 4:50 PM To: [email protected] Subject: [osg-users] Need help getting the osg::ColorMask I previously set 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 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

