// Set the GLModes on StateSet associated with the LightSource. void LightSource::setStateSetModes(StateSet& stateset,StateAttribute::GLModeValue value) const { if (_light.valid()) { stateset.setAssociatedModes(_light.get(),value); } }
// Set the GLModes on StateSet associated with the ClipPlanes. void ClipNode::setStateSetModes(StateSet& stateset,StateAttribute::GLModeValue value) const { for(ClipPlaneList::const_iterator itr=_planes.begin(); itr!=_planes.end(); ++itr) { stateset.setAssociatedModes(itr->get(),value); } }