gluTessVertex

fun gluTessVertex(tessellator: GLUtessellator, coords: DoubleArray, coords_offset: Int, data: Any)

gluTessVertex describes a vertex on a polygon that the program defines. Successive gluTessVertex calls describe a closed contour. For example, to describe a quadrilateral gluTessVertex should be called four times. gluTessVertex can only be called between .gluTessBeginContour and .gluTessBeginContour.

data normally references to a structure containing the vertex location, as well as other per-vertex attributes such as color and normal. This reference is passed back to the user through the GLU_TESS_VERTEX or GLU_TESS_VERTEX_DATA callback after tessellation (see the .gluTessCallback reference page).

Parameters

tessellator

Specifies the tessellation object (created with .gluNewTess).

coords

Specifies the coordinates of the vertex.

data

Specifies an opaque reference passed back to the program with the vertex callback (as specified by .gluTessCallback).

See also

.gluTessEndPolygon gluTessEndPolygon