Hi Paul, On 2/9/07, Paul Martz <[EMAIL PROTECTED]> wrote:
I'm curious about the following comment block in StateAttribute:/** list values which can be used to set either GLModeValues or OverrideValues. * When using in conjunction with GLModeValues, all Values have meaning. * When using in conjection with StateAttribute OverrideValue only * OFF,OVERRIDE and INHERIT are meaningful. Isn't it the case that OFF is meaningless for an attribute, but PROTECTED does have meaning?
The method which does the actual setting is: StateSet::setAttribute(AttributeList& attributeList,StateAttribute *attribute, const StateAttribute::OverrideValue value) In in here it masks out all but StateAttribute::OVERRIDE & StateAttribute::PROTECTED so only these have meaning in the case of attributes. Having the mode and attribute masks all mixed into one just helped keep down the number of different masks/bools required. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
