Visualization Library 2.0.0-b3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::PatchParameter Class Reference

Wrapper of glPatchParameter(), specifies the parameters for patch primitives, used by vl::DrawCall::setPatchParameter(). More...

#include <PatchParameter.hpp>

+ Inheritance diagram for vl::PatchParameter:

Public Member Functions

 PatchParameter ()
 Constructor. More...
 
void apply () const
 Applies the glPatchParameter values. More...
 
void setPatchVertices (int vertices)
 Specifies the number of vertices that will be used to make up a single patch primitive. More...
 
int patchVertices () const
 Returns the number of vertices that will be used to make up a single patch primitive. More...
 
void setPatchDefaultOuterLevel (const fvec4 &level)
 The four floating-point values corresponding to the four outer tessellation levels for each subsequent patch to be used when no tessellation control shader is present. More...
 
const fvec4patchDefaultOuterLevel () const
 The four floating-point values corresponding to the four outer tessellation levels for each subsequent patch to be used when no tessellation control shader is present. More...
 
void setPatchDefaultInnerLevel (const fvec2 &level)
 The two floating-point values corresponding to the tow inner tessellation levels for each subsequent patch to be used when no tessellation control shader is present. More...
 
const fvec2patchDefaultInnerLevel () const
 The two floating-point values corresponding to the tow inner tessellation levels for each subsequent patch to be used when no tessellation control shader is present. More...
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

Protected Attributes

int mPatchVertices
 
fvec4 mPatchDefaultOuterLevel
 
fvec2 mPatchDefaultInnerLevel
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 

Detailed Description

Wrapper of glPatchParameter(), specifies the parameters for patch primitives, used by vl::DrawCall::setPatchParameter().

See also http://www.opengl.org/sdk/docs/man4/xhtml/glPatchParameter.xml

Definition at line 44 of file PatchParameter.hpp.

Constructor & Destructor Documentation

◆ PatchParameter()

vl::PatchParameter::PatchParameter ( )
inline

Constructor.

Definition at line 50 of file PatchParameter.hpp.

Member Function Documentation

◆ apply()

void vl::PatchParameter::apply ( ) const
inline

◆ patchDefaultInnerLevel()

const fvec2& vl::PatchParameter::patchDefaultInnerLevel ( ) const
inline

The two floating-point values corresponding to the tow inner tessellation levels for each subsequent patch to be used when no tessellation control shader is present.

Definition at line 92 of file PatchParameter.hpp.

References mPatchDefaultInnerLevel.

Referenced by vl::VLXClassWrapper_PatchParameter::exportPatchParameter().

◆ patchDefaultOuterLevel()

const fvec4& vl::PatchParameter::patchDefaultOuterLevel ( ) const
inline

The four floating-point values corresponding to the four outer tessellation levels for each subsequent patch to be used when no tessellation control shader is present.

Definition at line 84 of file PatchParameter.hpp.

References mPatchDefaultOuterLevel.

Referenced by vl::VLXClassWrapper_PatchParameter::exportPatchParameter().

◆ patchVertices()

int vl::PatchParameter::patchVertices ( ) const
inline

Returns the number of vertices that will be used to make up a single patch primitive.

Definition at line 76 of file PatchParameter.hpp.

References mPatchVertices.

Referenced by vl::VLXClassWrapper_PatchParameter::exportPatchParameter().

◆ setPatchDefaultInnerLevel()

void vl::PatchParameter::setPatchDefaultInnerLevel ( const fvec2 level)
inline

The two floating-point values corresponding to the tow inner tessellation levels for each subsequent patch to be used when no tessellation control shader is present.

Definition at line 88 of file PatchParameter.hpp.

References mPatchDefaultInnerLevel.

Referenced by vl::VLXClassWrapper_PatchParameter::importPatchParameter().

◆ setPatchDefaultOuterLevel()

void vl::PatchParameter::setPatchDefaultOuterLevel ( const fvec4 level)
inline

The four floating-point values corresponding to the four outer tessellation levels for each subsequent patch to be used when no tessellation control shader is present.

Definition at line 80 of file PatchParameter.hpp.

References mPatchDefaultOuterLevel.

Referenced by vl::VLXClassWrapper_PatchParameter::importPatchParameter().

◆ setPatchVertices()

void vl::PatchParameter::setPatchVertices ( int  vertices)
inline

Specifies the number of vertices that will be used to make up a single patch primitive.

Patch primitives are consumed by the tessellation control shader (if present) and subsequently used for tessellation. When primitives are specified using glDrawArrays or a similar function, each patch will be made from vertices control points, each represented by a vertex taken from the enabeld vertex arrays. vertices must be greater than zero, and less than or equal to the value of GL_MAX_PATCH_VERTICES.

Definition at line 73 of file PatchParameter.hpp.

References mPatchVertices.

Referenced by vl::VLXClassWrapper_PatchParameter::importPatchParameter().

Member Data Documentation

◆ mPatchDefaultInnerLevel

fvec2 vl::PatchParameter::mPatchDefaultInnerLevel
protected

Definition at line 97 of file PatchParameter.hpp.

Referenced by apply(), patchDefaultInnerLevel(), and setPatchDefaultInnerLevel().

◆ mPatchDefaultOuterLevel

fvec4 vl::PatchParameter::mPatchDefaultOuterLevel
protected

Definition at line 96 of file PatchParameter.hpp.

Referenced by apply(), patchDefaultOuterLevel(), and setPatchDefaultOuterLevel().

◆ mPatchVertices

int vl::PatchParameter::mPatchVertices
protected

Definition at line 95 of file PatchParameter.hpp.

Referenced by apply(), patchVertices(), and setPatchVertices().


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