Package gov.nasa.worldwind.util.combine
Class CombineContext.TessCallbackAdapter
- java.lang.Object
-
- com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
- gov.nasa.worldwind.util.combine.CombineContext.TessCallbackAdapter
-
- All Implemented Interfaces:
com.jogamp.opengl.glu.GLUtessellatorCallback
- Enclosing class:
- CombineContext
protected static class CombineContext.TessCallbackAdapter extends com.jogamp.opengl.glu.GLUtessellatorCallbackAdapterImplementation of GLUtessellatorCallback that forwards GLU tessellator callbacks to protected methods on CombineContext.
-
-
Field Summary
Fields Modifier and Type Field Description protected CombineContextccThe CombineContext that receives forwarded GLU tessellator callbacks.
-
Constructor Summary
Constructors Constructor Description TessCallbackAdapter(CombineContext cc)Creates a new TessCallbackAdapter with a CombineContext that receives GLU tessellator callbacks sent to this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(int type)Calls CombineContext.tessBegin with the specified type.voidcombine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)Calls CombineContext.tessCombine with the specified arguments.voidend()Calls CombineContext.tessEnd.voiderror(int errno)Calls CombineContext.tessError with the specified errno.voidvertex(java.lang.Object vertexData)Calls CombineContext.tessVertex with the specified vertexData.
-
-
-
Field Detail
-
cc
protected CombineContext cc
The CombineContext that receives forwarded GLU tessellator callbacks.
-
-
Constructor Detail
-
TessCallbackAdapter
public TessCallbackAdapter(CombineContext cc)
Creates a new TessCallbackAdapter with a CombineContext that receives GLU tessellator callbacks sent to this instance.- Parameters:
cc- the CombineContext that receives forwarded GLU tessellator callbacks.
-
-
Method Detail
-
begin
public void begin(int type)
Calls CombineContext.tessBegin with the specified type.- Specified by:
beginin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
beginin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter- Parameters:
type- the GL primitive type.
-
vertex
public void vertex(java.lang.Object vertexData)
Calls CombineContext.tessVertex with the specified vertexData.- Specified by:
vertexin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
vertexin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter- Parameters:
vertexData- the caller specified vertex data.
-
end
public void end()
Calls CombineContext.tessEnd.- Specified by:
endin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
endin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
combine
public void combine(double[] coords, java.lang.Object[] vertexData, float[] weight, java.lang.Object[] outData)Calls CombineContext.tessCombine with the specified arguments.- Specified by:
combinein interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
combinein classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter- Parameters:
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.
-
error
public void error(int errno)
Calls CombineContext.tessError with the specified errno.- Specified by:
errorin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
errorin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter- Parameters:
errno- a GLU enumeration indicating the error.
-
-