From 58c52a4cd43adf75b111dbbfef4afc579168d862 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Mar 2017 14:43:07 +0100 Subject: [PATCH] Added TextBase::getMatrix() accessor --- include/osgText/TextBase | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osgText/TextBase b/include/osgText/TextBase index dae0da9c1..da8a61d04 100644 --- a/include/osgText/TextBase +++ b/include/osgText/TextBase @@ -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::Vec3& c) const { c = (*_coords)[i]; } + + /** Get the internal matrix used to provide positioning of text.*/ + const osg::Matrix& getMatrix() const { return _matrix; } + protected: virtual ~TextBase();