14 #ifndef OSGFX_MULTITEXTURECONTROL
15 #define OSGFX_MULTITEXTURECONTROL
19 #include <osgFX/Export>
41 void setTextureWeight(
unsigned int unit,
float weight);
42 float getTextureWeight(
unsigned int unit)
const {
return (unit<_textureWeights->size()) ? (*_textureWeights)[unit] : 0.0f; }
56 void updateStateSet();
void setTextureWeights(TextureWeights *twl)
osg::ref_ptr< TextureWeights > _textureWeights
bool _useTextureWeightsUniform
unsigned int getNumTextureWeights() const
#define META_Node(library, name)
virtual ~MultiTextureControl()
void setUseTextureWeightsUniform(bool flag)
float getTextureWeight(unsigned int unit) const
osg::FloatArray TextureWeights
TextureWeights * getTextureWeights()
void setUseTexEnvCombine(bool flag)
bool getUseTextureWeightsUniform() const
const TextureWeights * getTextureWeights() const
bool getUseTexEnvCombine() const