Refactored the computation of the transforms for the osgText::Text
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user