From 726bb13e9a6340fc6fcf6a9dcd9f51478066ab19 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 29 Sep 2017 09:54:43 +0100 Subject: [PATCH] Improved the setup of the --counter test --- examples/osgtext/osgtext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osgtext/osgtext.cpp b/examples/osgtext/osgtext.cpp index b576dc76b..4f7972fe3 100644 --- a/examples/osgtext/osgtext.cpp +++ b/examples/osgtext/osgtext.cpp @@ -621,8 +621,8 @@ struct TextCounterCallback : public osg::NodeCallback if (text) { std::stringstream str; - str <<"Text Counter "<<_textCounter<setText(str.str()); @@ -670,7 +670,7 @@ int main(int argc, char** argv) text->setUpdateCallback(new TextCounterCallback()); text->setFont("fonts/times.ttf"); text->setAxisAlignment(osgText::Text::XZ_PLANE); - text->setText("This is a counter test"); + text->setText("Text Counter :"); viewer.setSceneData(text.get()); }