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.GLUtessellatorCallback
begin
in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
type
- 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.GLUtessellatorCallback
combine
in class com.jogamp.opengl.glu.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 com.jogamp.opengl.glu.GLUtessellatorCallback
end
in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
public void error(int errno)
error
in interface com.jogamp.opengl.glu.GLUtessellatorCallback
error
in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
errno
- a GLU enumeration indicating the error.public void vertex(java.lang.Object vertexData)
vertex
in interface com.jogamp.opengl.glu.GLUtessellatorCallback
vertex
in class com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
vertexData
- the caller specified vertex data.