Added support for setting texture units in the new TexGenNode.
This commit is contained in:
@@ -32,25 +32,26 @@ class SG_EXPORT TexGenNode : public Group
|
||||
|
||||
META_Node(osg, TexGenNode);
|
||||
|
||||
|
||||
void setTextureUnit(unsigned int textureUnit) { _textureUnit = textureUnit; }
|
||||
|
||||
unsigned int getTextureUnit() const { return _textureUnit; }
|
||||
|
||||
/** Set the TexGen.*/
|
||||
void setTexGen(TexGen* texgen);
|
||||
|
||||
|
||||
/** Get the TexGen.*/
|
||||
inline TexGen* getTexGen() { return _texgen.get(); }
|
||||
|
||||
/** Get the const TexGen.*/
|
||||
inline const TexGen* getTexGen() const { return _texgen.get(); }
|
||||
|
||||
/** Set the GLModes on StateSet associated with the TexGen.*/
|
||||
void setStateSetModes(StateSet&,StateAttribute::GLModeValue) const;
|
||||
|
||||
/** Set up the local StateSet */
|
||||
void setLocalStateSetModes(StateAttribute::GLModeValue=StateAttribute::ON);
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~TexGenNode();
|
||||
|
||||
unsigned int _textureUnit;
|
||||
StateAttribute::GLModeValue _value;
|
||||
osg::ref_ptr<TexGen> _texgen;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user