Added s/getFactorMultiplier(), s/getUnitMultiplier(), areUnitAndMultipliersSet() and

setFactorAndUnitMultipliersUsingBestGuessForDriver() static methods to
osg::PolygonOffset to help implement workarounds for lack of portablity of
settings between different hardware.
This commit is contained in:
Robert Osfield
2006-07-14 14:08:33 +00:00
parent 618e63a267
commit 4bae225d39
3 changed files with 68 additions and 4 deletions

View File

@@ -65,6 +65,19 @@ class OSG_EXPORT PolygonOffset : public StateAttribute
virtual void apply(State& state) const;
static void setFactorMultiplier(float multiplier);
static float getFactorMultiplier();
static void setUnitMultiplier(float multiplier);
static float getUnitMultiplier();
static bool areUnitAndMultipliersSet();
/** 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();
protected :
virtual ~PolygonOffset();