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:
@@ -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.
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user