Added Text::getCharacterCorners(...) method to help applications that want to find out the positions of characters being rendered.

This commit is contained in:
Robert Osfield
2017-11-21 13:41:57 +00:00
parent d60b9714fe
commit 7f97b9f999
3 changed files with 23 additions and 4 deletions

View File

@@ -182,9 +182,13 @@ public:
virtual void accept(osg::PrimitiveFunctor& pf) const;
/** Get the coordinates of the character corners in local coordinates. Use Text::getMatrix() or Text::computeMatrix(..) to get the transform into model coordinates (see TextBase header.) */
bool getCharacterCorners(unsigned int index, osg::Vec3& bottomLeft, osg::Vec3& bottomRight, osg::Vec3& topLef, osg::Vec3& topRight) const;
/** Resize any per context GLObject buffers to specified size. */
virtual void resizeGLObjectBuffers(unsigned int maxSize);
/** If State is non-zero, this function releases OpenGL objects for
* the specified graphics context. Otherwise, releases OpenGL objexts
* for all graphics contexts. */