|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.opengl.glu.GLUtessellatorCallbackAdapter
org.mt4j.util.opengl.GLuTesselator
public class GLuTesselator
A wrapper class for use of the GLU-Tesselator. The tesselator can break down a shape made of of vertices into triangles. By providing information about the objects to tesselate, we can create polygons with holes, for example. Can be used to record a displaylist or to tesselate and draw in immediate mode. Opengl drawing commands are invoked during tesselation. Only works when using opengl renderer.
Constructor Summary | |
---|---|
GLuTesselator(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu) Deprecated. Creates a new tesselator object and defines callback methods, which the tesselator will later call. |
Method Summary | |
---|---|
void |
begin(int type) Deprecated. |
void |
combine(double[] coords, java.lang.Object[] data, float[] weight, java.lang.Object[] outData) Deprecated. CombineCallback is used to create a new vertex when edges intersect. |
void |
deleteTess() Deprecated. Delete tess. |
void |
end() Deprecated. |
void |
error(int errnum) Deprecated. |
javax.media.opengl.glu.GLUtessellator |
getTesselator() Deprecated. Gets the tesselator. |
void |
tesselate(java.util.List<Vertex[]> contours) Deprecated. Tesselate. |
void |
tesselate(java.util.List<Vertex[]> contours, int windingRule) Deprecated. Tesselate. |
void |
tesselate(Vertex[] contour, int windingRule) Deprecated. Tesselate. |
int |
tesselateToDisplayList(java.util.List<Vertex[]> contours, processing.core.PApplet pa) Deprecated. Tesselates the contours, draws it while recording a displaylist and returns the id of the displaylist for later use. |
int |
tesselateToDisplayList(java.util.List<Vertex[]> contours, processing.core.PApplet pa, int windingRule) Deprecated. Tesselates the contours, draws it while recording a displaylist and returns the id of the displaylist for later use. |
void |
vertex(java.lang.Object vertexData) Deprecated. Callback function. |
void |
vertexData(java.lang.Object vertexData, java.lang.Object polygonData) Deprecated. |
Methods inherited from class javax.media.opengl.glu.GLUtessellatorCallbackAdapter |
---|
beginData, combineData, edgeFlag, edgeFlagData, endData, errorData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLuTesselator(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
gl
- the glglu
- the gluMethod Detail |
---|
public void deleteTess()
public int tesselateToDisplayList(java.util.List<Vertex[]> contours, processing.core.PApplet pa)
contours
- the contourspa
- the papublic int tesselateToDisplayList(java.util.List<Vertex[]> contours, processing.core.PApplet pa, int windingRule)
contours
- the contourspa
- the pawindingRule
- the winding rulepublic void tesselate(Vertex[] contour, int windingRule)
contour
- the contourwindingRule
- the winding rulepublic void tesselate(java.util.List<Vertex[]> contours)
contours
- the contourspublic void tesselate(java.util.List<Vertex[]> contours, int windingRule)
contours
- the contourswindingRule
- the winding rulepublic void begin(int type)
begin
in interface javax.media.opengl.glu.GLUtessellatorCallback
begin
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void vertex(java.lang.Object vertexData)
vertex
in interface javax.media.opengl.glu.GLUtessellatorCallback
vertex
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
vertexData
- the vertex datapublic void vertexData(java.lang.Object vertexData, java.lang.Object polygonData)
vertexData
in interface javax.media.opengl.glu.GLUtessellatorCallback
vertexData
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void combine(double[] coords, java.lang.Object[] data, float[] weight, java.lang.Object[] outData)
This is called before the call to the vertex-callback method,
combine
in interface javax.media.opengl.glu.GLUtessellatorCallback
combine
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
coords
- the coordsdata
- the dataweight
- the weightoutData
- the out datapublic void end()
end
in interface javax.media.opengl.glu.GLUtessellatorCallback
end
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public void error(int errnum)
error
in interface javax.media.opengl.glu.GLUtessellatorCallback
error
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
public javax.media.opengl.glu.GLUtessellator getTesselator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |