OpenSceneGraph
3.4.0
|
Encapsulates OpenGL ClampColor state. More...
Public Member Functions | |
ClampColor () | |
ClampColor (GLenum vertexMode, GLenum fragmentMode, GLenum readMode) | |
ClampColor (const ClampColor &rhs, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, ClampColor, CLAMPCOLOR) | |
virtual int | compare (const StateAttribute &sa) const |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
void | setClampVertexColor (GLenum mode) |
GLenum | getClampVertexColor () const |
void | setClampFragmentColor (GLenum mode) |
GLenum | getClampFragmentColor () const |
void | setClampReadColor (GLenum mode) |
GLenum | getClampReadColor () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~ClampColor () |
Protected Attributes | |
GLenum | _clampVertexColor |
GLenum | _clampFragmentColor |
GLenum | _clampReadColor |
Encapsulates OpenGL ClampColor state.
osg::ClampColor::ClampColor | ( | GLenum | vertexMode, |
GLenum | fragmentMode, | ||
GLenum | readMode | ||
) |
osg::ClampColor::ClampColor | ( | const ClampColor & | rhs, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ClampColor::~ClampColor | ( | ) | [protected, virtual] |
virtual void osg::ClampColor::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::ClampColor::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.
GLenum osg::ClampColor::getClampFragmentColor | ( | ) | const [inline] |
GLenum osg::ClampColor::getClampReadColor | ( | ) | const [inline] |
GLenum osg::ClampColor::getClampVertexColor | ( | ) | const [inline] |
osg::ClampColor::META_StateAttribute | ( | osg | , |
ClampColor | , | ||
CLAMPCOLOR | |||
) |
void osg::ClampColor::setClampFragmentColor | ( | GLenum | mode | ) | [inline] |
void osg::ClampColor::setClampReadColor | ( | GLenum | mode | ) | [inline] |
void osg::ClampColor::setClampVertexColor | ( | GLenum | mode | ) | [inline] |
GLenum osg::ClampColor::_clampFragmentColor [protected] |
GLenum osg::ClampColor::_clampReadColor [protected] |
GLenum osg::ClampColor::_clampVertexColor [protected] |
![]() | Generated at Tue Dec 8 2015 00:14:23 for the OpenSceneGraph by doxygen 1.7.6.1. |