diff --git a/include/osg/PolygonOffset b/include/osg/PolygonOffset index 5ffdfe9dc..7e2d9852a 100644 --- a/include/osg/PolygonOffset +++ b/include/osg/PolygonOffset @@ -69,14 +69,14 @@ class OSG_EXPORT PolygonOffset : public StateAttribute static void setFactorMultiplier(float multiplier); static float getFactorMultiplier(); - static void setUnitMultiplier(float multiplier); - static float getUnitMultiplier(); + static void setUnitsMultiplier(float multiplier); + static float getUnitsMultiplier(); - static bool areUnitAndMultipliersSet(); + static bool areUnitsAndMultipliersSet(); /** Checks with the OpenGL driver to try and pick multiplier approrpriate for the hardware. note, requires a valid graphics context to be current. */ - static void setFactorAndUnitMultipliersUsingBestGuessForDriver(); + static void setFactorAndUnitsMultipliersUsingBestGuessForDriver(); protected : diff --git a/src/osg/PolygonOffset.cpp b/src/osg/PolygonOffset.cpp index 84222df61..7906650d8 100644 --- a/src/osg/PolygonOffset.cpp +++ b/src/osg/PolygonOffset.cpp @@ -17,7 +17,7 @@ using namespace osg; static float s_FactorMultipler = 1.0f; -static float s_UnitMultipler = 1.0f; +static float s_UnitsMultipler = 1.0f; static bool s_MultiplerSet = false; void PolygonOffset::setFactorMultiplier(float multiplier) @@ -31,24 +31,24 @@ float PolygonOffset::getFactorMultiplier() return s_FactorMultipler; } -void PolygonOffset::setUnitMultiplier(float multiplier) +void PolygonOffset::setUnitsMultiplier(float multiplier) { s_MultiplerSet = true; - s_UnitMultipler = multiplier; + s_UnitsMultipler = multiplier; } -float PolygonOffset::getUnitMultiplier() +float PolygonOffset::getUnitsMultiplier() { - return s_UnitMultipler; + return s_UnitsMultipler; } -bool PolygonOffset::areUnitAndMultipliersSet() +bool PolygonOffset::areUnitsAndMultipliersSet() { return s_MultiplerSet; } -void PolygonOffset::setFactorAndUnitMultipliersUsingBestGuessForDriver() +void PolygonOffset::setFactorAndUnitsMultipliersUsingBestGuessForDriver() { s_MultiplerSet = true; // osg::notify(osg::NOTICE)<<"PolygonOffset::setFactorAndUnitMultipliersUsingBestGuessForDriver()"<