Added TextBase::getMatrix() accessor

This commit is contained in:
Robert Osfield 2017-03-28 14:43:07 +01:00
parent 25e6fbb2ff
commit 58c52a4cd4

View File

@ -276,6 +276,10 @@ public:
void getCoord(unsigned int i, osg::Vec2& c) const { c.set((*_coords)[i].x(), (*_coords)[i].y()); } void getCoord(unsigned int i, osg::Vec2& c) const { c.set((*_coords)[i].x(), (*_coords)[i].y()); }
void getCoord(unsigned int i, osg::Vec3& c) const { c = (*_coords)[i]; } void getCoord(unsigned int i, osg::Vec3& c) const { c = (*_coords)[i]; }
/** Get the internal matrix used to provide positioning of text.*/
const osg::Matrix& getMatrix() const { return _matrix; }
protected: protected:
virtual ~TextBase(); virtual ~TextBase();