Visualization Library v1.0.3

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

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:
vl::Object

List of all members.

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 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.
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 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.

Protected Attributes

int mPatchVertices
fvec4 mPatchDefaultOuterLevel
fvec2 mPatchDefaultInnerLevel

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

vl::PatchParameter::PatchParameter (  ) [inline]

Constructor.

Definition at line 50 of file PatchParameter.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

void vl::PatchParameter::apply (  ) const [inline]
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().


Member Data Documentation

Definition at line 95 of file PatchParameter.hpp.

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

Definition at line 96 of file PatchParameter.hpp.

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

Definition at line 97 of file PatchParameter.hpp.

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


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.