Restructed and unified the position computation

This commit is contained in:
Robert Osfield
2017-02-23 15:45:43 +00:00
parent 7b3ecefcfc
commit 8ff17ddf52
7 changed files with 235 additions and 309 deletions

View File

@@ -109,8 +109,8 @@ class OSGTEXT_EXPORT Text3D : public osgText::TextBase
* for all graphics contexts. */
virtual void releaseGLObjects(osg::State* state=0) const;
// // make Font a friend to allow it set the _font to 0 if the font is
// // forcefully unloaded.
// make Font a friend to allow it set the _font to 0 if the font is
// forcefully unloaded.
friend class Font;
virtual osg::BoundingBox computeBoundingBox() const;
@@ -126,7 +126,6 @@ class OSGTEXT_EXPORT Text3D : public osgText::TextBase
String::iterator computeLastCharacterOnLine(osg::Vec2& cursor, String::iterator first,String::iterator last);
void computeGlyphRepresentation();
void computePositions(unsigned int contextID) const;
// ** glyph and other information to render the glyph
struct GlyphRenderInfo