Convertex osg::notify to OSG_INFO etc.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user