From Farshid Lashkari, added function for querring whether a mode is a texture related mode or not.
This commit is contained in:
parent
d91e1ff4bb
commit
35d134f712
@ -486,6 +486,8 @@ class OSG_EXPORT StateSet : public Object
|
||||
|
||||
};
|
||||
|
||||
extern OSG_EXPORT bool isTextureMode(StateAttribute::GLMode mode);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user