protected static class CombineContext.TessCallbackAdapter extends GLUtessellatorCallbackAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CombineContext |
cc
The CombineContext that receives forwarded GLU tessellator callbacks.
|
| Constructor and Description |
|---|
TessCallbackAdapter(CombineContext cc)
Creates a new TessCallbackAdapter with a CombineContext that receives GLU tessellator callbacks sent to this
instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(int type)
Calls CombineContext.tessBegin with the specified type.
|
void |
combine(double[] coords,
Object[] vertexData,
float[] weight,
Object[] outData)
Calls CombineContext.tessCombine with the specified arguments.
|
void |
end()
Calls CombineContext.tessEnd.
|
void |
error(int errno)
Calls CombineContext.tessError with the specified errno.
|
void |
vertex(Object vertexData)
Calls CombineContext.tessVertex with the specified vertexData.
|
beginData, combineData, edgeFlag, edgeFlagData, endData, errorData, vertexDataprotected CombineContext cc
public TessCallbackAdapter(CombineContext cc)
cc - the CombineContext that receives forwarded GLU tessellator callbacks.public void begin(int type)
begin in interface GLUtessellatorCallbackbegin in class GLUtessellatorCallbackAdaptertype - the GL primitive type.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.