Public Types |
| enum | Face { FRONT,
BACK,
FRONT_AND_BACK
} |
| enum | Mode { POINT = GL_POINT,
LINE = GL_LINE,
FILL = GL_FILL
} |
Public Methods |
| | PolygonMode () |
| | PolygonMode (const PolygonMode &pm, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, PolygonMode, POLYGONMODE) |
| virtual int | compare (const StateAttribute &sa) const |
| | return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
| void | setMode (const Face face, const Mode mode) |
| const Mode | getMode (const Face face) const |
| const bool | getFrontAndBack () const |
| virtual void | apply (State &state) const |
| | apply the OpenGL state attributes.
|
Protected Methods |
| virtual | ~PolygonMode () |
Protected Attributes |
| bool | _frontAndBack |
| Mode | _modeFront |
| Mode | _modeBack |