OpenSceneGraph
3.4.0
|
Class which encapsulates glPatchParameter(..). More...
Public Member Functions | |
PatchParameter (GLint vertices=3) | |
PatchParameter (const PatchParameter &rhs, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, PatchParameter, PATCH_PARAMETER) | |
virtual int | compare (const StateAttribute &sa) const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
void | setVertices (GLint vertices) |
Set GL_PATCH_VERTICES parameter. | |
GLint | getVertices () const |
Get GL_PATCH_VERTICES parameter. | |
void | setPatchDefaultInnerLevel (const osg::Vec2 &level) |
Set GL_PATCH_DEFAULT_INNER_LEVEL parameter. | |
const osg::Vec2 & | getPatchDefaultInnerLevel () const |
Get GL_PATCH_DEFAULT_INNER_LEVEL parameter. | |
void | setPatchDefaultOuterLevel (const osg::Vec4 &level) |
Set GL_PATCH_DEFAULT_OUTER_LEVEL parameter. | |
const osg::Vec4 & | getPatchDefaultOuterLevel () const |
Get GL_PATCH_DEFAULT_INNER_LEVEL parameter. | |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~PatchParameter () |
Protected Attributes | |
GLint | _vertices |
osg::Vec2 | _patchDefaultInnerLevel |
osg::Vec4 | _patchDefaultOuterLevel |
Class which encapsulates glPatchParameter(..).
osg::PatchParameter::PatchParameter | ( | GLint | vertices = 3 | ) |
osg::PatchParameter::PatchParameter | ( | const PatchParameter & | rhs, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::PatchParameter::~PatchParameter | ( | ) | [protected, virtual] |
virtual void osg::PatchParameter::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::PatchParameter::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.
const osg::Vec2& osg::PatchParameter::getPatchDefaultInnerLevel | ( | ) | const [inline] |
Get GL_PATCH_DEFAULT_INNER_LEVEL parameter.
const osg::Vec4& osg::PatchParameter::getPatchDefaultOuterLevel | ( | ) | const [inline] |
Get GL_PATCH_DEFAULT_INNER_LEVEL parameter.
GLint osg::PatchParameter::getVertices | ( | ) | const [inline] |
Get GL_PATCH_VERTICES parameter.
void osg::PatchParameter::setPatchDefaultInnerLevel | ( | const osg::Vec2 & | level | ) | [inline] |
Set GL_PATCH_DEFAULT_INNER_LEVEL parameter.
void osg::PatchParameter::setPatchDefaultOuterLevel | ( | const osg::Vec4 & | level | ) | [inline] |
Set GL_PATCH_DEFAULT_OUTER_LEVEL parameter.
void osg::PatchParameter::setVertices | ( | GLint | vertices | ) | [inline] |
Set GL_PATCH_VERTICES parameter.
GLint osg::PatchParameter::_vertices [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:43 for the OpenSceneGraph by doxygen 1.7.6.1. |