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:
Robert Osfield
2017-03-02 11:12:55 +00:00
parent f233005988
commit 4721651dbe
3 changed files with 142 additions and 24 deletions

View File

@@ -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
{

View File

@@ -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;