Convertex osg::notify to OSG_INFO etc.

This commit is contained in:
Robert Osfield
2010-05-28 16:04:56 +00:00
parent 030f4c06a9
commit d23525889e
5 changed files with 6 additions and 6 deletions

View File

@@ -219,7 +219,7 @@ namespace
#if !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GL3_AVAILABLE)
ss->setMode( GL_ALPHA_TEST, osg::StateAttribute::OFF );
#else
osg::notify(osg::NOTICE)<<"Warning: osgFX::AnisotropicLighting unable to disable GL_ALPHA_TEST."<<std::endl;
OSG_NOTICE<<"Warning: osgFX::AnisotropicLighting unable to disable GL_ALPHA_TEST."<<std::endl;
#endif
addPass(ss.get());

View File

@@ -440,7 +440,7 @@ namespace
void define_passes()
{
if (_diffuse_unit != (_normal_unit + 1)) {
osg::notify(osg::WARN) << "Warning: osgFX::BumpMapping: this technique (ArbVpTechnique) requires that _diffuse_unit == (_normal_unit + 1). Effect may not show up properly.\n";
OSG_WARN << "Warning: osgFX::BumpMapping: this technique (ArbVpTechnique) requires that _diffuse_unit == (_normal_unit + 1). Effect may not show up properly.\n";
}
// first pass, diffuse bump

View File

@@ -68,13 +68,13 @@ void Effect::traverse(osg::NodeVisitor& nv)
// check for errors, return on failure
if (!_techs_defined) {
osg::notify(osg::WARN) << "Warning: osgFX::Effect: could not define techniques for effect " << className() << std::endl;
OSG_WARN << "Warning: osgFX::Effect: could not define techniques for effect " << className() << std::endl;
return;
}
// ensure that at least one technique has been defined
if (_techs.empty()) {
osg::notify(osg::WARN) << "Warning: osgFX::Effect: no techniques defined for effect " << className() << std::endl;
OSG_WARN << "Warning: osgFX::Effect: no techniques defined for effect " << className() << std::endl;
return;
}
}

View File

@@ -77,7 +77,7 @@ namespace
glMatrixMode(GL_MODELVIEW);
#else
osg::notify(osg::NOTICE)<<"Warning: osgFX::SpecualHighlights unable to set texture matrix."<<std::endl;
OSG_NOTICE<<"Warning: osgFX::SpecualHighlights unable to set texture matrix."<<std::endl;
#endif
}

View File

@@ -42,6 +42,6 @@ void Validator::apply(osg::State& state) const
return;
}
}
osg::notify(osg::WARN) << "Warning: osgFX::Validator: could not find any techniques compatible with the current OpenGL context" << std::endl;
OSG_WARN << "Warning: osgFX::Validator: could not find any techniques compatible with the current OpenGL context" << std::endl;
}
}