Hi Andreas,

maybe this could help you:

text->setBackDropType(osgText::Text::OUTLINE);
text->setBackDropColor(...);

You can also configure the width and height of the backdrop.. see API
reference for all the combinations.

Rafa.


On 4/9/07, Andreas Goebel <[EMAIL PROTECTED]> wrote:

Hi,

is there a simple way of drawing a background-rectangle to ensure
readability of the text? For instance a white rectangle behind a black
text to ensure, that the text stays readable if it is over a black object?

If not, I would draw it with a geometry that uses the bounding box of
the text, right?

Regards,

Andreas

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to