Package gov.nasa.worldwind.util
Class GLUTessellatorSupport.CollectPrimitivesCallback
- java.lang.Object
-
- com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
- gov.nasa.worldwind.util.GLUTessellatorSupport.CollectPrimitivesCallback
-
- All Implemented Interfaces:
com.jogamp.opengl.glu.GLUtessellatorCallback
- Enclosing class:
- GLUTessellatorSupport
public static class GLUTessellatorSupport.CollectPrimitivesCallback extends com.jogamp.opengl.glu.GLUtessellatorCallbackAdapterProvides the callback class used to capture triangle and line primitive indices determined by the tessellator.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanedgeFlagprotected boolean[]edgeFlagsprotected interrorprotected intindexprotected java.nio.IntBufferlineBufferprotected java.util.List<java.lang.Integer>linesprotected java.nio.IntBuffertriangleBufferprotected java.util.List<java.lang.Integer>trianglesprotected GLUTessellatorSupport.VertexData[]vertices
-
Constructor Summary
Constructors Constructor Description CollectPrimitivesCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach(com.jogamp.opengl.glu.GLUtessellator tessellator)voidbegin(int type)voidedgeFlag(boolean flag)voidend()voiderror(int errno)intgetError()java.nio.IntBuffergetLineIndices()java.nio.IntBuffergetTriangleIndices()voidreset()voidvertex(java.lang.Object vertexData)
-
-
-
Field Detail
-
triangles
protected java.util.List<java.lang.Integer> triangles
-
lines
protected java.util.List<java.lang.Integer> lines
-
triangleBuffer
protected java.nio.IntBuffer triangleBuffer
-
lineBuffer
protected java.nio.IntBuffer lineBuffer
-
error
protected int error
-
index
protected int index
-
vertices
protected GLUTessellatorSupport.VertexData[] vertices
-
edgeFlags
protected boolean[] edgeFlags
-
edgeFlag
protected boolean edgeFlag
-
-
Method Detail
-
getTriangleIndices
public java.nio.IntBuffer getTriangleIndices()
-
getLineIndices
public java.nio.IntBuffer getLineIndices()
-
getError
public int getError()
-
attach
public void attach(com.jogamp.opengl.glu.GLUtessellator tessellator)
-
reset
public void reset()
-
begin
public void begin(int type)
- Specified by:
beginin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
beginin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
end
public void end()
- Specified by:
endin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
endin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
vertex
public void vertex(java.lang.Object vertexData)
- Specified by:
vertexin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
vertexin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
edgeFlag
public void edgeFlag(boolean flag)
- Specified by:
edgeFlagin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
edgeFlagin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
error
public void error(int errno)
- Specified by:
errorin interfacecom.jogamp.opengl.glu.GLUtessellatorCallback- Overrides:
errorin classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
-