From 4f6478ceb684f5f70cbd503d5e6758203b3c496d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 18 Nov 2004 16:20:48 +0000 Subject: [PATCH] Changed debugging info to use osg::notify --- examples/osglauncher/osglauncher.cpp | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/osglauncher/osglauncher.cpp b/examples/osglauncher/osglauncher.cpp index 152c1306e..90aee4551 100644 --- a/examples/osglauncher/osglauncher.cpp +++ b/examples/osglauncher/osglauncher.cpp @@ -163,7 +163,7 @@ class Xample { texture = image; app = prog; - std::cout << "New Xample!" << std::endl; + osg::notify(osg::INFO) << "New Xample!" << std::endl; }; ~Xample() { }; @@ -184,48 +184,48 @@ static std::list Xamplelist; void printList() { - std::cout << "start printList()" << std::endl; + osg::notify(osg::INFO) << "start printList()" << std::endl; for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i) { Xample& x = *i; - std::cout << "current x.texture = " << x.getTexture() << std::endl; - std::cout << "current x.app = " << x.getApp() << std::endl; + osg::notify(osg::INFO) << "current x.texture = " << x.getTexture() << std::endl; + osg::notify(osg::INFO) << "current x.app = " << x.getApp() << std::endl; } - std::cout << "end printList()" << std::endl; + osg::notify(osg::INFO) << "end printList()" << std::endl; } // end printList() int runApp(std::string xapp) { - std::cout << "start runApp()" << std::endl; + osg::notify(osg::INFO) << "start runApp()" << std::endl; for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i) { Xample& x = *i; if(!xapp.compare(x.getApp())) { - std::cout << "app found!" << std::endl; + osg::notify(osg::INFO) << "app found!" << std::endl; const char* cxapp = xapp.c_str(); - std::cout << "char* = " << cxapp <getBound(); - std::cout << name << std::endl; - std::cout << "center = " << currentBound.center() << std::endl; - std::cout << "radius = " << currentBound.radius() << std::endl; + osg::notify(osg::INFO) << name << std::endl; + osg::notify(osg::INFO) << "center = " << currentBound.center() << std::endl; + osg::notify(osg::INFO) << "radius = " << currentBound.radius() << std::endl; // return currentBound.radius(); }