Added support for computing bounds of text.

This commit is contained in:
Robert Osfield
2003-03-03 09:37:02 +00:00
parent fbe674b321
commit e2b95c50a4
3 changed files with 91 additions and 52 deletions

View File

@@ -200,10 +200,16 @@ protected:
// iternal map used for rendering. Set up by the computeGlyphRepresentation() method.
TextureGlyphQuadMap _textureGlyphQuadMap;
mutable osg::BoundingBox _textBB;
void computeGlyphRepresentation();
// internal caches of the positioning of the text.
osg::Matrix _matrix;
osg::Vec3 _offset;
mutable osg::BoundingBox _textBB;
void computePositions();
};
}