openscenegraph
|
Static Public Member Functions | |
static void | setFactorMultiplier (float multiplier) |
static float | getFactorMultiplier () |
static void | setUnitsMultiplier (float multiplier) |
static float | getUnitsMultiplier () |
static bool | areFactorAndUnitsMultipliersSet () |
static void | setFactorAndUnitsMultipliersUsingBestGuessForDriver () |
Protected Member Functions | |
virtual | ~PolygonOffset () |
![]() | |
virtual | ~StateAttribute () |
void | addParent (osg::StateSet *object) |
void | removeParent (osg::StateSet *object) |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
float | _factor |
float | _units |
![]() | |
ParentList | _parents |
ref_ptr< ShaderComponent > | _shaderComponent |
ref_ptr< StateAttributeCallback > | _updateCallback |
ref_ptr< StateAttributeCallback > | _eventCallback |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
PolygonOffset - encapsulates the OpenGL glPolygonOffset state.
osg::PolygonOffset::PolygonOffset | ( | ) |
osg::PolygonOffset::PolygonOffset | ( | float | factor, |
float | units | ||
) |
|
inline |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
protectedvirtual |
apply the OpenGL state attributes. The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
|
static |
|
inlinevirtual |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
|
inline |
|
static |
|
inlinevirtual |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
References GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_POINT, and osg::StateAttribute::ModeUsage::usesMode().
|
inline |
|
static |
osg::PolygonOffset::META_StateAttribute | ( | osg | , |
PolygonOffset | , | ||
POLYGONOFFSET | |||
) |
|
inline |
|
static |
Checks with the OpenGL driver to try and pick multiplier appropriate for the hardware. note, requires a valid graphics context to be current.
|
static |
|
inline |
|
static |
|
protected |
|
protected |