Renamed osg::State::getCurrentMode/Attribute(..) to

getLastAppliedMode/Attribute() to make it more consistent with the internal
workings of osg::State.
This commit is contained in:
Robert Osfield
2002-05-21 09:16:31 +00:00
parent b8d8a8be27
commit bf872fa7ac
2 changed files with 4 additions and 4 deletions

View File

@@ -145,10 +145,10 @@ class SG_EXPORT State : public Referenced
void haveAppliedAttribute(const StateAttribute::Type type);
/** Get whether the current specified mode is enabled (true) or disabled (false).*/
const bool getCurrentMode(const StateAttribute::GLMode mode) const;
const bool getLastAppliedMode(const StateAttribute::GLMode mode) const;
/** Get the current specified attribute, return NULL is one has not yet been applied.*/
const StateAttribute* getCurrentAttribute(const StateAttribute::Type type) const;
const StateAttribute* getLastAppliedAttribute(const StateAttribute::Type type) const;
/** Set the current OpenGL context uniqueID.

View File

@@ -570,7 +570,7 @@ void State::haveAppliedAttribute(const StateAttribute::Type type)
}
}
const bool State::getCurrentMode(const StateAttribute::GLMode mode) const
const bool State::getLastAppliedMode(const StateAttribute::GLMode mode) const
{
ModeMap::const_iterator itr = _modeMap.find(mode);
if (itr!=_modeMap.end())
@@ -584,7 +584,7 @@ const bool State::getCurrentMode(const StateAttribute::GLMode mode) const
}
}
const StateAttribute* State::getCurrentAttribute(const StateAttribute::Type type) const
const StateAttribute* State::getLastAppliedAttribute(const StateAttribute::Type type) const
{
AttributeMap::const_iterator itr = _attributeMap.find(type);
if (itr!=_attributeMap.end())