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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user