protected static class CombineContext.TessCallbackAdapter
extends com.jogamp.opengl.glu.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,
java.lang.Object[] vertexData,
float[] weight,
java.lang.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(java.lang.Object vertexData)
Calls CombineContext.tessVertex with the specified 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 com.jogamp.opengl.glu.GLUtessellatorCallbackbegin in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdaptertype - the GL primitive type.public void combine(double[] coords,
java.lang.Object[] vertexData,
float[] weight,
java.lang.Object[] outData)
combine in interface com.jogamp.opengl.glu.GLUtessellatorCallbackcombine in class com.jogamp.opengl.glu.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 com.jogamp.opengl.glu.GLUtessellatorCallbackend in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapterpublic void error(int errno)
error in interface com.jogamp.opengl.glu.GLUtessellatorCallbackerror in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdaptererrno - a GLU enumeration indicating the error.public void vertex(java.lang.Object vertexData)
vertex in interface com.jogamp.opengl.glu.GLUtessellatorCallbackvertex in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdaptervertexData - the caller specified vertex data.