Added s/getMaxNumOfTextureUnits control to osgGA::StateSetManipulator, and set the default to 4.

This commit is contained in:
Robert Osfield
2005-11-11 14:22:57 +00:00
parent 91f5b9b04e
commit e5685bc1ac
3 changed files with 13 additions and 3 deletions

View File

@@ -53,6 +53,9 @@ public:
/** Get the keyboard and mouse usage of this manipulator.*/
virtual void getUsage(osg::ApplicationUsage& usage) const;
void setMaximumNumOfTextureUnits(unsigned int i) { _maxNumOfTextureUnits = i; }
unsigned int getMaximumNumOfTextureUnits() const { return _maxNumOfTextureUnits; }
protected:
@@ -62,6 +65,7 @@ protected:
bool _backface;
bool _lighting;
bool _texture;
unsigned int _maxNumOfTextureUnits;
};
}