OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions | Protected Attributes
osg::PatchParameter Class Reference

Class which encapsulates glPatchParameter(..). More...

Inheritance diagram for osg::PatchParameter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PatchParameter (GLint vertices=3)
 PatchParameter (const PatchParameter &rhs, const CopyOp &copyop=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::Vec2getPatchDefaultInnerLevel () const
 Get GL_PATCH_DEFAULT_INNER_LEVEL parameter.
void setPatchDefaultOuterLevel (const osg::Vec4 &level)
 Set GL_PATCH_DEFAULT_OUTER_LEVEL parameter.
const osg::Vec4getPatchDefaultOuterLevel () 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

Detailed Description

Class which encapsulates glPatchParameter(..).


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

Get GL_PATCH_DEFAULT_INNER_LEVEL parameter.

Get GL_PATCH_DEFAULT_INNER_LEVEL parameter.

GLint osg::PatchParameter::getVertices ( ) const [inline]

Get GL_PATCH_VERTICES parameter.

Set GL_PATCH_DEFAULT_INNER_LEVEL parameter.

Set GL_PATCH_DEFAULT_OUTER_LEVEL parameter.

void osg::PatchParameter::setVertices ( GLint  vertices) [inline]

Set GL_PATCH_VERTICES parameter.


Member Data Documentation

GLint osg::PatchParameter::_vertices [protected]

The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1.