Improved the setup of the --counter test

This commit is contained in:
Robert Osfield 2017-09-29 09:54:43 +01:00
parent 75d23b2c10
commit 726bb13e9a

View File

@ -621,8 +621,8 @@ struct TextCounterCallback : public osg::NodeCallback
if (text) if (text)
{ {
std::stringstream str; std::stringstream str;
str <<"Text Counter "<<_textCounter<<std::endl; str <<"Text Counter "<<_textCounter;
OSG_NOTICE<<"Udating text"<<str.str()<<std::endl; OSG_NOTICE<<"Updating text : "<<str.str()<<std::endl;
text->setText(str.str()); text->setText(str.str());
@ -670,7 +670,7 @@ int main(int argc, char** argv)
text->setUpdateCallback(new TextCounterCallback()); text->setUpdateCallback(new TextCounterCallback());
text->setFont("fonts/times.ttf"); text->setFont("fonts/times.ttf");
text->setAxisAlignment(osgText::Text::XZ_PLANE); text->setAxisAlignment(osgText::Text::XZ_PLANE);
text->setText("This is a counter test"); text->setText("Text Counter :");
viewer.setSceneData(text.get()); viewer.setSceneData(text.get());
} }