From 45bd464942e4676b9304b2cd7e97b34173ae2f04 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 17 Jan 2011 09:10:14 +0000 Subject: [PATCH] Added getNum methods --- include/osg/StateSet | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/osg/StateSet b/include/osg/StateSet index e40626bf4..2bbe260ad 100644 --- a/include/osg/StateSet +++ b/include/osg/StateSet @@ -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 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);