From 805a78c3b5b23d3ef4d761458d767b8b83baefc8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 28 May 2010 16:27:37 +0000 Subject: [PATCH] Converted osg::notify to OSG_INFO --- src/osgPlugins/obj/OBJWriterNodeVisitor.cpp | 2 +- src/osgPlugins/obj/ReaderWriterOBJ.cpp | 16 +++--- src/osgPlugins/obj/obj.cpp | 60 ++++++++++----------- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/osgPlugins/obj/OBJWriterNodeVisitor.cpp b/src/osgPlugins/obj/OBJWriterNodeVisitor.cpp index 43f22d988..0e78077b0 100644 --- a/src/osgPlugins/obj/OBJWriterNodeVisitor.cpp +++ b/src/osgPlugins/obj/OBJWriterNodeVisitor.cpp @@ -407,7 +407,7 @@ void ObjPrimitiveIndexWriter::drawArrays(GLenum mode,GLint first,GLsizei count) break; } default: - osg::notify(osg::WARN) << "OBJWriterNodeVisitor :: can't handle mode " << mode << std::endl; + OSG_WARN << "OBJWriterNodeVisitor :: can't handle mode " << mode << std::endl; break; } } diff --git a/src/osgPlugins/obj/ReaderWriterOBJ.cpp b/src/osgPlugins/obj/ReaderWriterOBJ.cpp index ace791c08..942df5034 100644 --- a/src/osgPlugins/obj/ReaderWriterOBJ.cpp +++ b/src/osgPlugins/obj/ReaderWriterOBJ.cpp @@ -240,7 +240,7 @@ static void load_material_texture( obj::Model &model, if ( image->isImageTranslucent()) { - osg::notify(osg::INFO)<<"Found transparent image"<setMode(GL_BLEND, osg::StateAttribute::ON); stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN); } @@ -253,12 +253,12 @@ static void load_material_texture( obj::Model &model, osg::Matrix mat; if (map.uScale != 1.0f || map.vScale != 1.0f) { - osg::notify(osg::DEBUG_INFO) << "Obj TexMat scale=" << map.uScale << "," << map.vScale << std::endl; + OSG_DEBUG << "Obj TexMat scale=" << map.uScale << "," << map.vScale << std::endl; mat *= osg::Matrix::scale(map.uScale, map.vScale, 1.0); } if (map.uOffset != 0.0f || map.vOffset != 0.0f) { - osg::notify(osg::DEBUG_INFO) << "Obj TexMat offset=" << map.uOffset << "," << map.uOffset << std::endl; + OSG_DEBUG << "Obj TexMat offset=" << map.uOffset << "," << map.uOffset << std::endl; mat *= osg::Matrix::translate(map.uOffset, map.vOffset, 0.0); } @@ -343,7 +343,7 @@ void ReaderWriterOBJ::buildMaterialToStateSetMap(obj::Model& model, MaterialToSt material.specular[3]!=1.0|| material.emissive[3]!=1.0) { - osg::notify(osg::INFO)<<"Found transparent material"<0) { @@ -488,12 +488,12 @@ bool Model::readMTL(std::istream& fin) } else { - osg::notify(osg::NOTICE) <<"*** line not handled *** :"<0) { @@ -567,7 +567,7 @@ bool Model::readOBJ(std::istream& fin, const osgDB::ReaderWriter::Options* optio (line[0]=='l') ? Element::POLYLINE : Element::POLYGON ); - // osg::notify(osg::NOTICE)<<"face"<first; ElementList& el = itr->second; - osg::notify(osg::NOTICE)<<"ElementState "<