edgeFlag

open override fun edgeFlag(boundaryEdge: Boolean)(source)

The edgeFlag callback method is similar to javax.media.opengl.GL.glEdgeFlag. The method takes a single boolean boundaryEdge that indicates which edges lie on the polygon boundary. If the boundaryEdge is GL_TRUE, then each vertex that follows begins an edge that lies on the polygon boundary, that is, an edge that separates an interior region from an exterior one. If the boundaryEdge is GL_FALSE, then each vertex that follows begins an edge that lies in the polygon interior. The edge flag callback (if defined) is invoked before the first vertex callback.

Since triangle fans and triangle strips do not support edge flags, the begin callback is not called with GL_TRIANGLE_FAN or GL_TRIANGLE_STRIP if a non-null edge flag callback is provided. (If the callback is initialized to null, there is no impact on performance). Instead, the fans and strips are converted to independent triangles.

Parameters

boundaryEdge

Specifics which edges lie on the polygon boundary.

See also

GLU.gluTessCallback

gluTessCallback

.edgeFlagData edgeFlagData