From Farshid Lashkari, added function for querring whether a mode is a texture related mode or not.

This commit is contained in:
Robert Osfield 2006-09-21 10:01:27 +00:00
parent d91e1ff4bb
commit 35d134f712
2 changed files with 7 additions and 0 deletions

View File

@ -486,6 +486,8 @@ class OSG_EXPORT StateSet : public Object
};
extern OSG_EXPORT bool isTextureMode(StateAttribute::GLMode mode);
}
#endif

View File

@ -73,6 +73,11 @@ static TextureGLModeSet& getTextureGLModeSet()
return s_textureGLModeSet;
}
bool osg::isTextureMode(StateAttribute::GLMode mode)
{
return getTextureGLModeSet().isTextureMode(mode);
}
StateSet::StateSet()
{
setDataVariance(osg::StateAttribute::STATIC);