public static class GLUTessellatorSupport.RecursiveCallback extends GLUtessellatorCallbackAdapter
| Modifier and Type | Field and Description |
|---|---|
protected GLUtessellator |
tess
The GLU tessellator that receives the tessellation results sent to this callback.
|
| Constructor and Description |
|---|
RecursiveCallback(GLUtessellator tessellator)
Creates a new RecursiveCallback with the GLU tessellator that receives boundary tessellation results.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(int type)
Called by the GLU tessellator to indicate the beginning of a new line loop.
|
void |
combine(double[] coords,
Object[] vertexData,
float[] weight,
Object[] outData)
Called by the GLU tessellator to indicate that up to four vertices must be merged into a new vertex.
|
void |
end()
Called by the GLU tessellator to indicate the end of the current line loop.
|
void |
error(int errno)
Called by the GLU tessellator when the tessellation algorithm encounters an error.
|
void |
vertex(Object vertexData)
Called by the GLU tessellator to indicate the next vertex of the current contour.
|
beginData, combineData, edgeFlag, edgeFlagData, endData, errorData, vertexDataprotected GLUtessellator tess
public RecursiveCallback(GLUtessellator tessellator)
tessellator - the GLU tessellator that receives the tessellation results sent to this callback. This
tessellator may be configured in any way the caller chooses, but should be prepared to
receive contour input from this callback.IllegalArgumentException - if the tessellator is null.public void begin(int type)
begin in interface GLUtessellatorCallbackbegin in class GLUtessellatorCallbackAdaptertype - the GL primitive type. Must be GL_LINE_LOOP.public void combine(double[] coords,
Object[] vertexData,
float[] weight,
Object[] outData)
combine in interface GLUtessellatorCallbackcombine in class GLUtessellatorCallbackAdaptercoords - A three element array containing the x, y and z coordinates of the new vertex.vertexData - The caller specified vertex data of the original vertices.weight - The coefficients of the linear combination. These weights sum to 1.outData - A one element array that must contain the caller specified data associated with the new
vertex after this method returns.public void end()
end in interface GLUtessellatorCallbackend in class GLUtessellatorCallbackAdapterpublic void error(int errno)
error in interface GLUtessellatorCallbackerror in class GLUtessellatorCallbackAdaptererrno - a GLU enumeration indicating the error.public void vertex(Object vertexData)
vertex in interface GLUtessellatorCallbackvertex in class GLUtessellatorCallbackAdaptervertexData - the caller specified vertex data. Must be a double array containing three elements - the x,
y and z coordinates associated with the vertex.