Added UniformBase::setName(const std::string& baseName, unsigned int unit); declaration

This commit is contained in:
Robert Osfield 2016-11-18 16:36:27 +00:00
parent ccfb320ae8
commit 7d076d0407

View File

@ -36,6 +36,9 @@ class OSG_EXPORT UniformBase : public Object
/** Set the name of the glUniform, ensuring it is only set once.*/ /** Set the name of the glUniform, ensuring it is only set once.*/
virtual void setName( const std::string& name ); virtual void setName( const std::string& name );
/** Set the name of the glUniform appending [unit] such as osg_Light[0].*/
void setName(const std::string& baseName, unsigned int unit);
inline unsigned int getNameID() const { return _nameID; } inline unsigned int getNameID() const { return _nameID; }
/** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */ /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */