OpenSceneGraph 2.8.3
|
State Class for setting OpenGL's polygon culling mode. More...
Public Types | |
enum | Mode { POINT = GL_POINT, LINE = GL_LINE, FILL = GL_FILL } |
enum | Face { FRONT_AND_BACK, FRONT, BACK } |
Public Member Functions | |
PolygonMode () | |
PolygonMode (Face face, Mode mode) | |
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 (Face face, Mode mode) |
Mode | getMode (Face face) const |
bool | getFrontAndBack () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~PolygonMode () |
Protected Attributes | |
Mode | _modeFront |
Mode | _modeBack |
State Class for setting OpenGL's polygon culling mode.
osg::PolygonMode::PolygonMode | ( | ) |
osg::PolygonMode::PolygonMode | ( | const PolygonMode & | pm, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::PolygonMode::~PolygonMode | ( | ) | [protected, virtual] |
virtual void osg::PolygonMode::apply | ( | State & | ) | const [virtual] |
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.
virtual int osg::PolygonMode::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
bool osg::PolygonMode::getFrontAndBack | ( | ) | const [inline] |
osg::PolygonMode::META_StateAttribute | ( | osg | , |
PolygonMode | , | ||
POLYGONMODE | |||
) |
Mode osg::PolygonMode::_modeBack [protected] |
Mode osg::PolygonMode::_modeFront [protected] |
![]() | Generated at Tue Mar 22 2011 13:20:22 for the OpenSceneGraph by doxygen 1.7.3. |