Refactored the computation of the transforms for the osgText::Text

This commit is contained in:
Robert Osfield
2017-02-21 17:07:53 +00:00
parent ad0e6a0f81
commit cd991eaa97
3 changed files with 326 additions and 7 deletions

View File

@@ -20,6 +20,8 @@
#include <osgText/KerningType>
#include <osgText/Font>
#define NEW_APPROACH
namespace osgText {
@@ -318,8 +320,10 @@ protected:
int _width;
int _height;
osg::Vec3 _transformedPosition;
#ifndef NEW_APPROACH
osg::Matrix _modelview;
osg::Matrix _projection;
#endif
osg::Matrix _matrix;
};