|
||||||||||
| 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 glu| Method Detail |
|---|
public void deleteTess()
public int tesselateToDisplayList(java.util.List<Vertex[]> contours,
processing.core.PApplet pa)
contours - the contourspa - the pa
public int tesselateToDisplayList(java.util.List<Vertex[]> contours,
processing.core.PApplet pa,
int windingRule)
contours - the contourspa - the pawindingRule - the winding rule
public void tesselate(Vertex[] contour,
int windingRule)
contour - the contourwindingRule - the winding rulepublic void tesselate(java.util.List<Vertex[]> contours)
contours - the contours
public 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.GLUtessellatorCallbackbegin in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void vertex(java.lang.Object vertexData)
vertex in interface javax.media.opengl.glu.GLUtessellatorCallbackvertex in class javax.media.opengl.glu.GLUtessellatorCallbackAdaptervertexData - the vertex data
public void vertexData(java.lang.Object vertexData,
java.lang.Object polygonData)
vertexData in interface javax.media.opengl.glu.GLUtessellatorCallbackvertexData 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.GLUtessellatorCallbackcombine in class javax.media.opengl.glu.GLUtessellatorCallbackAdaptercoords - the coordsdata - the dataweight - the weightoutData - the out datapublic void end()
end in interface javax.media.opengl.glu.GLUtessellatorCallbackend in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic void error(int errnum)
error in interface javax.media.opengl.glu.GLUtessellatorCallbackerror in class javax.media.opengl.glu.GLUtessellatorCallbackAdapterpublic javax.media.opengl.glu.GLUtessellator getTesselator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||