Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wrapper of glPatchParameter(), specifies the parameters for patch primitives, used by vl::DrawCall::setPatchParameter(). More...
#include <PatchParameter.hpp>
Public Member Functions | |
PatchParameter () | |
Constructor. | |
void | apply () const |
Applies the glPatchParameter values. | |
void | setPatchVertices (int vertices) |
Specifies the number of vertices that will be used to make up a single patch primitive. | |
int | patchVertices () const |
Returns the number of vertices that will be used to make up a single patch primitive. | |
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. | |
const fvec4 & | patchDefaultOuterLevel () 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. | |
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. | |
const fvec2 & | patchDefaultInnerLevel () 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. | |
Protected Attributes | |
int | mPatchVertices |
fvec4 | mPatchDefaultOuterLevel |
fvec2 | mPatchDefaultInnerLevel |
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.
vl::PatchParameter::PatchParameter | ( | ) | [inline] |
void vl::PatchParameter::apply | ( | ) | const [inline] |
Applies the glPatchParameter values.
Definition at line 56 of file PatchParameter.hpp.
References vl::Has_GL_Version_4_0, mPatchDefaultInnerLevel, mPatchDefaultOuterLevel, mPatchVertices, vl::Vector2< T_Scalar >::ptr(), vl::Vector4< T_Scalar >::ptr(), VL_CHECK, and VL_CHECK_OGL.
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().
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().
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().
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().
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().
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().
int vl::PatchParameter::mPatchVertices [protected] |
Definition at line 95 of file PatchParameter.hpp.
Referenced by apply(), patchVertices(), and setPatchVertices().
fvec4 vl::PatchParameter::mPatchDefaultOuterLevel [protected] |
Definition at line 96 of file PatchParameter.hpp.
Referenced by apply(), patchDefaultOuterLevel(), and setPatchDefaultOuterLevel().
fvec2 vl::PatchParameter::mPatchDefaultInnerLevel [protected] |
Definition at line 97 of file PatchParameter.hpp.
Referenced by apply(), patchDefaultInnerLevel(), and setPatchDefaultInnerLevel().