EasyManuals Logo
Home>HP>Desktop>b2600

HP b2600 Reference Guide

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #412 background imageLoading...
Page #412 background image
T
gluTessCallback
Chapter 18
412
gluTessCallback
gluTessCallback: define a callback for a tessellation object.
C Specification
void gluTessCallback(
GLUtesselator* tess,
GLenum which,
GLvoid (*CallBackFunc)()
Parameters
tess Specifies the tessellation object (created with gluNewTess).
which Specifies the callback being defined. The following values are valid:
GLU_TESS_BEGIN, GLU_TESS_BEGIN_DATA,
GLU_TESS_EDGE_FLAG, GLU_TESS_EDGE_FLAG_DATA,
GLU_TESS_VERTEX, GLU_TESS_VERTEX_DATA,
GLU_TESS_END, GLU_TESS_END_DATA, GLU_TESS_COMBINE,
GLU_TESS_COMBINE_DATA, GLU_TESS_ERROR, and
GLU_TESS_ERROR_DATA.
CallBackFunc Specifies the function to be called.
Description
gluTessCallback is used to indicate a callback to be used by a tessellation object. If the
specified callback is already defined, then it is replaced. If CallBackFunc is NULL, then
the existing callback becomes undefined.
These callbacks are used by the tessellation object to describe how a polygon specified by
the user is broken into triangles. Note that there are two versions of each callback: one
with user-specified polygon data and one without. If both versions of a particular
callback are specified, then the callback with user-specified polygon data will be used.
Note that the polygon_data parameter used by some of the functions is a copy of the
pointer that was specified when gluTessBeginPolygon was called. The legal callbacks are
as follows:
GLU_TESS_BEGIN
The begin callback is invoked like glBegin to indicate the start of a (triangle) primitive.
The function takes a single argument of type GLenum. If the
GLU_TESS_BOUNDARY_ONLY property is set to GL_FALSE, then the argument is set
to either GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP, or GL_TRIANGLES. If the
GLU_TESS_BOUNDARY_ONLY property is set to GL_TRUE, then the argument will
be set to GL_LINE_LOOP. The function prototype for this callback is:
void begin(GLenum type);
GLU_TESS_BEGIN_DATA

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals