Added NEW_APPROACH code path that merges the separate GlyphGeometry arrays and primitives into a single set of arrays and primitives
This commit is contained in:
@@ -127,6 +127,10 @@ class OSGTEXT_EXPORT Text3D : public osgText::TextBase
|
||||
|
||||
void computeGlyphRepresentation();
|
||||
|
||||
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList;
|
||||
osg::Geometry::PrimitiveSetList _wallPrimitiveSetList;
|
||||
osg::Geometry::PrimitiveSetList _backPrimitiveSetList;
|
||||
|
||||
// ** glyph and other information to render the glyph
|
||||
struct GlyphRenderInfo
|
||||
{
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
namespace osgText {
|
||||
|
||||
#define NEW_APPROACH
|
||||
|
||||
class OSGTEXT_EXPORT TextBase : public osg::Drawable
|
||||
{
|
||||
public:
|
||||
@@ -326,6 +328,7 @@ protected:
|
||||
void setupDecoration();
|
||||
|
||||
Coords _coords;
|
||||
Coords _normals;
|
||||
ColorCoords _colorCoords;
|
||||
TexCoords _texcoords;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user