Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Wrapper of glPatchParameter() - specifies the parameters for patch primitives, see also http://www.opengl.org/sdk/docs/man4/xhtml/glPatchParameter.xml. More...
#include <PatchParameter.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| PatchParameter () | |
| Constructor. | |
| void | apply () |
| 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, see also http://www.opengl.org/sdk/docs/man4/xhtml/glPatchParameter.xml.
Definition at line 43 of file PatchParameter.hpp.
| vl::PatchParameter::PatchParameter | ( | ) | [inline] |
| virtual const char* vl::PatchParameter::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Definition at line 46 of file PatchParameter.hpp.
| void vl::PatchParameter::apply | ( | ) | [inline] |
Applies the glPatchParameter values.
Definition at line 55 of file PatchParameter.hpp.
References 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 72 of file PatchParameter.hpp.
References mPatchVertices.
| 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 75 of file PatchParameter.hpp.
References mPatchVertices.
| 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 79 of file PatchParameter.hpp.
References mPatchDefaultOuterLevel.
| 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 83 of file PatchParameter.hpp.
References mPatchDefaultOuterLevel.
| 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 87 of file PatchParameter.hpp.
References mPatchDefaultInnerLevel.
| 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 91 of file PatchParameter.hpp.
References mPatchDefaultInnerLevel.
int vl::PatchParameter::mPatchVertices [protected] |
Definition at line 94 of file PatchParameter.hpp.
Referenced by apply(), patchVertices(), and setPatchVertices().
fvec4 vl::PatchParameter::mPatchDefaultOuterLevel [protected] |
Definition at line 95 of file PatchParameter.hpp.
Referenced by apply(), patchDefaultOuterLevel(), and setPatchDefaultOuterLevel().
fvec2 vl::PatchParameter::mPatchDefaultInnerLevel [protected] |
Definition at line 96 of file PatchParameter.hpp.
Referenced by apply(), patchDefaultInnerLevel(), and setPatchDefaultInnerLevel().