3#ifndef _SO_GL_POLYGON_OFFSET_ELEMENT_
4#define _SO_GL_POLYGON_OFFSET_ELEMENT_
35 virtual void setElt(
float factor,
float units,
Style styles,
bool on);
53 bool _copiedFromParent;
56 float _currentoffsetfactor;
57 float _currentoffsetunits;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
INVENTOR_API bool operator!=(const SbBox3f &b1, const SbBox3f &b2)
INVENTOR_API bool operator==(const SbBox3f &b1, const SbBox3f &b2)
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
This is the abstract base class for all state elements.
virtual void init(SoState *state)
Initializes element.
virtual ~SoGLPolygonOffsetElement()
Destructor.
static void initClass()
Initializes the SoGLPolygonOffsetElement class.
virtual void setElt(float factor, float units, Style styles, bool on)
virtual void push(SoState *state)
Override push() method to copy state pointer and value of previous element, to avoid sending GL comma...
virtual void pop(SoState *state, const SoElement *childElt)
Override pop() method so side effects can occur in GL.
An SoState collects and holds state while traversing a scene graph.