Added #include <osg/Notify>, convert osg::notify usage to OSG_NOTICE

This commit is contained in:
Robert Osfield
2010-02-19 20:11:14 +00:00
parent eca4361c4a
commit 1924350e1c
4 changed files with 8 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
#include <osg/ColorMatrix>
#include <osg/GL>
#include <osg/State>
#include <osg/Notify>
using namespace osg;
@@ -39,6 +40,6 @@ void ColorMatrix::apply(State& state) const
glMatrixMode( GL_MODELVIEW );
}
#else
osg::notify(osg::NOTICE)<<"Warning: ColorMatrix::apply(State&) - not supported."<<std::endl;
OSG_NOTICE<<"Warning: ColorMatrix::apply(State&) - not supported."<<std::endl;
#endif
}

View File

@@ -13,6 +13,7 @@
#include <osg/GLExtensions>
#include <osg/State>
#include <osg/Fog>
#include <osg/Notify>
using namespace osg;
@@ -56,6 +57,6 @@ void Fog::apply(State& state) const
glFogi(GL_FOG_COORDINATE_SOURCE,_fogCoordinateSource);
}
#else
osg::notify(osg::NOTICE)<<"Warning: Fog::apply(State&) - not supported."<<std::endl;
OSG_NOTICE<<"Warning: Fog::apply(State&) - not supported."<<std::endl;
#endif
}

View File

@@ -13,6 +13,7 @@
#include <osg/GLExtensions>
#include <osg/TexEnv>
#include <osg/State>
#include <osg/Notify>
using namespace osg;
@@ -47,6 +48,6 @@ void TexEnv::apply(State& state) const
}
}
#else
osg::notify(osg::NOTICE)<<"Warning: TexEnv::apply(State&) - not supported."<<std::endl;
OSG_NOTICE<<"Warning: TexEnv::apply(State&) - not supported."<<std::endl;
#endif
}

View File

@@ -13,6 +13,7 @@
#include <osg/GLExtensions>
#include <osg/TexEnvFilter>
#include <osg/State>
#include <osg/Notify>
using namespace osg;
@@ -38,6 +39,6 @@ void TexEnvFilter::apply(State& state) const
glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, _lodBias);
}
#else
osg::notify(osg::NOTICE)<<"Warning: TexEnvFilter::apply(State&) - not supported."<<std::endl;
OSG_NOTICE<<"Warning: TexEnvFilter::apply(State&) - not supported."<<std::endl;
#endif
}