Added getNum methods

This commit is contained in:
Robert Osfield
2011-01-17 09:10:14 +00:00
parent 4525dce70e
commit 45bd464942

View File

@@ -222,6 +222,8 @@ class OSG_EXPORT StateSet : public Object
/** return the const list of all Texture related GLModes contained in this const StateSet.*/
inline const TextureModeList& getTextureModeList() const { return _textureModeList; }
/** Return the number texture units active in the TextureModeList.*/
inline unsigned int getNumTextureModeLists() const { return _textureModeList.size(); }
typedef std::vector<AttributeList> TextureAttributeList;
@@ -257,6 +259,9 @@ class OSG_EXPORT StateSet : public Object
/** Return the const list of all Texture related StateAttributes contained in this const StateSet.*/
inline const TextureAttributeList& getTextureAttributeList() const { return _textureAttributeList; }
/** Return the number of texture units active in the TextureAttributeList.*/
inline unsigned int getNumTextureAttributeLists() const { return _textureAttributeList.size(); }
void setAssociatedModes(const StateAttribute* attribute, StateAttribute::GLModeValue value);
void removeAssociatedModes(const StateAttribute* attribute);