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, vertexData
protected CombineContext cc
public TessCallbackAdapter(CombineContext cc)
cc
- the CombineContext that receives forwarded GLU tessellator callbacks.public void begin(int type)
begin
in interface GLUtessellatorCallback
begin
in class GLUtessellatorCallbackAdapter
type
- the GL primitive type.public void combine(double[] coords, Object[] vertexData, float[] weight, Object[] outData)
combine
in interface GLUtessellatorCallback
combine
in class GLUtessellatorCallbackAdapter
coords
- 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 GLUtessellatorCallback
end
in class GLUtessellatorCallbackAdapter
public void error(int errno)
error
in interface GLUtessellatorCallback
error
in class GLUtessellatorCallbackAdapter
errno
- a GLU enumeration indicating the error.public void vertex(Object vertexData)
vertex
in interface GLUtessellatorCallback
vertex
in class GLUtessellatorCallbackAdapter
vertexData
- the caller specified vertex data.