From afa735d83a6c6ddaf4d316abe314278963e465dc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 28 May 2010 17:14:11 +0000 Subject: [PATCH] Converted osg::notify to OSG_INFO etc. --- src/osgPlugins/mdl/MDLReader.cpp | 28 ++++++++++++++-------------- src/osgPlugins/mdl/VTXReader.cpp | 2 +- src/osgPlugins/mdl/VVDReader.cpp | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/osgPlugins/mdl/MDLReader.cpp b/src/osgPlugins/mdl/MDLReader.cpp index 56a184381..f1c129546 100644 --- a/src/osgPlugins/mdl/MDLReader.cpp +++ b/src/osgPlugins/mdl/MDLReader.cpp @@ -155,8 +155,8 @@ ref_ptr MDLReader::readTextureFile(std::string textureName) else { // We were unable to find the texture file - notify(WARN) << "Couldn't find texture " << textureName; - notify(WARN) << std::endl; + OSG_WARN << "Couldn't find texture " << textureName; + OSG_WARN << std::endl; // No texture texture = NULL; @@ -165,8 +165,8 @@ ref_ptr MDLReader::readTextureFile(std::string textureName) else { // We were unable to find the texture file - notify(WARN) << "Couldn't find texture " << textureName; - notify(WARN) << std::endl; + OSG_WARN << "Couldn't find texture " << textureName; + OSG_WARN << std::endl; // No texture texture = NULL; @@ -262,7 +262,7 @@ ref_ptr MDLReader::readMaterialFile(std::string materialName) else { // Didn't find the material file, so return NULL - notify(WARN) << "Can't find material " << materialName << std::endl; + OSG_WARN << "Can't find material " << materialName << std::endl; return NULL; } @@ -289,8 +289,8 @@ ref_ptr MDLReader::readMaterialFile(std::string materialName) if (!found) { mtlFile->close(); - notify(WARN) << "Material " << materialName << " isn't valid."; - notify(WARN) << std::endl; + OSG_WARN << "Material " << materialName << " isn't valid."; + OSG_WARN << std::endl; return NULL; } @@ -384,8 +384,8 @@ ref_ptr MDLReader::readMaterialFile(std::string materialName) } else { - notify(WARN) << "No base texture for material " << materialName; - notify(WARN) << std::endl; + OSG_WARN << "No base texture for material " << materialName; + OSG_WARN << std::endl; stateSet->setTextureMode(0, GL_TEXTURE_2D, StateAttribute::OFF); } @@ -445,8 +445,8 @@ ref_ptr MDLReader::readMaterialFile(std::string materialName) } else { - notify(WARN) << "No base texture for material " << materialName; - notify(WARN) << std::endl; + OSG_WARN << "No base texture for material " << materialName; + OSG_WARN << std::endl; stateSet->setTextureMode(0, GL_TEXTURE_2D, StateAttribute::OFF); } } @@ -572,7 +572,7 @@ bool MDLReader::readFile(const std::string & file) mdlFile = new osgDB::ifstream(fileName.c_str(), std::ios::binary); if (!mdlFile) { - osg::notify(osg::NOTICE) << "MDL file not found" << std::endl; + OSG_NOTICE << "MDL file not found" << std::endl; return false; } @@ -582,8 +582,8 @@ bool MDLReader::readFile(const std::string & file) // Make sure the file is a valid Valve MDL file if (header.magic_number != MDL_MAGIC_NUMBER) { - osg::notify(osg::NOTICE) << "This is not a valid .mdl file"; - osg::notify(osg::NOTICE) << std::endl; + OSG_NOTICE << "This is not a valid .mdl file"; + OSG_NOTICE << std::endl; // Close the file before we quit mdlFile->close(); diff --git a/src/osgPlugins/mdl/VTXReader.cpp b/src/osgPlugins/mdl/VTXReader.cpp index ffb9d45f3..9a60c8c87 100644 --- a/src/osgPlugins/mdl/VTXReader.cpp +++ b/src/osgPlugins/mdl/VTXReader.cpp @@ -379,7 +379,7 @@ bool VTXReader::readFile(const std::string & file) vtxFile = new osgDB::ifstream(file.c_str(), std::ios::binary); if (!vtxFile || vtxFile->fail()) { - notify(NOTICE) << "Vertex index file not found" << std::endl; + OSG_NOTICE << "Vertex index file not found" << std::endl; return false; } diff --git a/src/osgPlugins/mdl/VVDReader.cpp b/src/osgPlugins/mdl/VVDReader.cpp index 2f24b5a03..f358c6bb0 100644 --- a/src/osgPlugins/mdl/VVDReader.cpp +++ b/src/osgPlugins/mdl/VVDReader.cpp @@ -56,7 +56,7 @@ bool VVDReader::readFile(const std::string & file) vvdFile = new osgDB::ifstream(file.c_str(), std::ios::binary); if (!vvdFile) { - notify(NOTICE) << "Vertex data file not found" << std::endl; + OSG_NOTICE << "Vertex data file not found" << std::endl; return false; } @@ -67,7 +67,7 @@ bool VVDReader::readFile(const std::string & file) // Make sure the file is a valid Valve VVD file if (header.magic_number != VVD_MAGIC_NUMBER) { - notify(NOTICE) << "Vertex data file not valid" << std::endl; + OSG_NOTICE << "Vertex data file not valid" << std::endl; return false; }