gluTessCallback

open override fun gluTessCallback(which: Int, aCallback: GLUtessellatorCallback?)(source)

Defines a callback function for the GLU tessellation object. The callback is associated with a specific tessellation event identified by the which parameter. This method allows users to specify behavior for various tessellation-related events such as errors, vertex processing, edge flags, and others.

Parameters

which

An integer constant specifying the type of callback to be set. Valid values include predefined constants such as GLU_TESS_BEGIN, GLU_TESS_VERTEX, GLU_TESS_END, etc. These constants define the specific event for which the callback is being set.

aCallback

The callback implementation to be invoked for the specified event. This should be an instance of GLUtessellatorCallback or null if no callback is required for the specified event.