Changed the default text colour to black
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14382 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
900534f86e
commit
aa2c9c152f
@ -228,11 +228,14 @@ osg::Node* Style::createText(const osg::BoundingBox& extents, const AlignmentSet
|
||||
{
|
||||
// OSG_NOTICE<<"createText"<<std::endl;
|
||||
|
||||
osg::Vec4 textColor(0.0f,0.0,0.0f,1.0);
|
||||
|
||||
osg::ref_ptr<osgText::Text> textDrawable = new osgText::Text;
|
||||
textDrawable->setName("Text");
|
||||
|
||||
textDrawable->setText(text);
|
||||
textDrawable->setEnableDepthWrites(false);
|
||||
textDrawable->setColor(textColor);
|
||||
|
||||
if (ts)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user