Moved to use of single vector of DrawElementsUShort for backdrops and foreground text quads

This commit is contained in:
Robert Osfield
2017-02-24 10:07:01 +00:00
parent 22b8a5cc0f
commit 93f28d4eee
2 changed files with 47 additions and 26 deletions

View File

@@ -302,19 +302,20 @@ public:
typedef osg::ref_ptr<osg::Vec3Array> Coords;
typedef osg::ref_ptr<osg::Vec2Array> TexCoords;
typedef osg::ref_ptr<osg::Vec4Array> ColorCoords;
typedef std::vector< osg::ref_ptr<osg::DrawElementsUShort> > Primitives;
Glyphs _glyphs;
Coords _coords;
ColorCoords _colorCoords;
TexCoords _texcoords;
LineNumbers _lineNumbers;
Coords _transformedBackdropCoords[8];
ColorCoords _colorCoords;
Primitives _primitives;
osg::ref_ptr<osg::DrawElementsUShort> _quadIndices;
void updateQuadIndices();
void updatePrimitives();
GlyphQuads();
GlyphQuads(const GlyphQuads& gq);