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.GLUtessellatorCallbackAdapter
Provides the callback class used to capture triangle and line primitive indices determined by the tessellator.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
edgeFlag
protected boolean[]
edgeFlags
protected int
error
protected int
index
protected java.nio.IntBuffer
lineBuffer
protected java.util.List<java.lang.Integer>
lines
protected java.nio.IntBuffer
triangleBuffer
protected java.util.List<java.lang.Integer>
triangles
protected GLUTessellatorSupport.VertexData[]
vertices
-
Constructor Summary
Constructors Constructor Description CollectPrimitivesCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attach(com.jogamp.opengl.glu.GLUtessellator tessellator)
void
begin(int type)
void
edgeFlag(boolean flag)
void
end()
void
error(int errno)
int
getError()
java.nio.IntBuffer
getLineIndices()
java.nio.IntBuffer
getTriangleIndices()
void
reset()
void
vertex(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:
begin
in interfacecom.jogamp.opengl.glu.GLUtessellatorCallback
- Overrides:
begin
in classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
end
public void end()
- Specified by:
end
in interfacecom.jogamp.opengl.glu.GLUtessellatorCallback
- Overrides:
end
in classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
vertex
public void vertex(java.lang.Object vertexData)
- Specified by:
vertex
in interfacecom.jogamp.opengl.glu.GLUtessellatorCallback
- Overrides:
vertex
in classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
edgeFlag
public void edgeFlag(boolean flag)
- Specified by:
edgeFlag
in interfacecom.jogamp.opengl.glu.GLUtessellatorCallback
- Overrides:
edgeFlag
in classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
error
public void error(int errno)
- Specified by:
error
in interfacecom.jogamp.opengl.glu.GLUtessellatorCallback
- Overrides:
error
in classcom.jogamp.opengl.glu.GLUtessellatorCallbackAdapter
-
-