Change Unit to Units to keep consistent with OpenGL naming.

This commit is contained in:
Robert Osfield
2006-07-17 11:43:26 +00:00
parent 460ea4586e
commit 2ef59b73e9
4 changed files with 22 additions and 22 deletions

View File

@@ -1448,9 +1448,9 @@ void Text::drawImplementation(osg::State& state) const
if(_backdropType != NONE)
{
if (!osg::PolygonOffset::areUnitAndMultipliersSet())
if (!osg::PolygonOffset::areUnitsAndMultipliersSet())
{
osg::PolygonOffset::setFactorAndUnitMultipliersUsingBestGuessForDriver();
osg::PolygonOffset::setFactorAndUnitsMultipliersUsingBestGuessForDriver();
}
// Do I really need to do this for glPolygonOffset?
@@ -1494,7 +1494,7 @@ void Text::drawImplementation(osg::State& state) const
{
state.setVertexPointer( 3, GL_FLOAT, 0, &(transformedBackdropCoords.front()));
glPolygonOffset(2.0f * osg::PolygonOffset::getFactorMultiplier(),
3.0f * osg::PolygonOffset::getUnitMultiplier() * (max_backdrop_index-backdrop_index) );
3.0f * osg::PolygonOffset::getUnitsMultiplier() * (max_backdrop_index-backdrop_index) );
glDrawArrays(GL_QUADS,0,transformedBackdropCoords.size());
}
}