[osg-users] HUD Text Background
jamie robertson
jamierobertson1 at hotmail.com
Fri Jul 8 12:14:37 PDT 2016
Hi,
There is already support for doing this directly in osgText::Text, for example:
Code:
text->setDrawMode(osgText::TextBase::DrawModeMask::FILLEDBOUNDINGBOX | TextBase::DrawModeMask::TEXT);
text->setBoundingBoxColor(osg::Vec4(0.0f, 0.0f, 0.2f, 0.25f));
text->setBoundingBoxMargin(2.0f);
Cheers,
Jamie[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68070#68070
More information about the osg-users
mailing list