Rediger

Del via


gluTessVertex function

The gluTessVertex function specifies a vertex on a polygon.

Syntax

void WINAPI gluTessVertex(
   GLUtesselator *tess,
   GLdouble      coords[3],
   void          *data
);

Parameters

tess

The tessellation object (created with gluNewTess).

coords

The location of the vertex.

data

An pointer passed back to the program with the vertex callback (as specified by gluTessCallback).

Return value

This function does not return a value.

Remarks

The gluTessVertex function describes a vertex on a polygon that the user is defining. Successive gluTessVertex calls describe a closed contour. For example, to describe a quadrilateral, call gluTessVertex four times. You can only call gluTessVertex between gluTessBeginContour and gluTessEndContour.

The data parameter normally points to a structure containing the vertex location, as well as other per-vertex attributes such as color and normal. This pointer is passed back to the program through the GLU_VERTEX callback after tessellation (see gluTessCallback).

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Glu.h
Library
Glu32.lib
DLL
Glu32.dll

See also

gluNewTess

gluTessBeginContour

gluTessBeginPolygon

gluTessCallback

gluTessEndContour

gluTessNormal

gluTessProperty