Added osg::StateSet::merge(const StateSet& rhs) merges merges the modes and

attributes of rhs into 'this' stateset.
This commit is contained in:
Robert Osfield
2001-10-14 09:58:49 +00:00
parent 72dc08cd9a
commit 39ea16aad7
2 changed files with 54 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ class SG_EXPORT StateSet : public Object
/** set all the modes to inherit, typically used to signify
nodes which inherit all of their modes for the global state.*/
void setAllToInherit();
/** merge this stateset with stateset rhs, this overrides
* the rhs if OVERRIDE is specified, otherwise rhs takes precedence.*/
void merge(const StateSet& rhs);
/** a container to map GLModes to their respective GLModeValues.*/
typedef std::map<StateAttribute::GLMode,StateAttribute::GLModeValue> ModeList;