|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLUTesselator
This class defines the API of a GLU tesselator object. Developers wishing to use GLU tesselators within their Magician applications should implement this interface and write method bodies for each method, eg, the begin, end and error tesselator callback at the very least.
GLU
Field Summary | |
static int |
BEGIN_CALLBACK
Tessellator callbacks |
static int |
COMBINE_CALLBACK
|
static int |
EDGE_FLAG_CALLBACK
|
static int |
EDGEFLAG_CALLBACK
|
static int |
END_CALLBACK
|
static int |
ERROR_CALLBACK
|
CoreGL |
gl
Basic GL and GLU pipelines that can be used in subclassed tesselators |
CoreGLU |
glu
|
TraceGL |
tracegl
Tracing pipeline to enable us to see what's going on... |
TraceGLU |
traceglu
|
static java.lang.String |
VERSION
Version information |
static int |
VERTEX_CALLBACK
|
Constructor Summary | |
GLUTesselator()
Creates a new GLUTesselator object |
|
GLUTesselator(int callbacks)
Creates a new GLUTesselator object registering only the stated callbacks |
Method Summary | |
void |
begin(int mode)
Callback that handles the beginning of polygon tesselation. |
void |
beginPolygon()
Begins a polygon description that is to be tesselated. |
void |
combine(double[] coords,
double[][] vertex,
float[] weight,
float[] dataOut)
Combine callback. |
void |
deleteTess()
Destroys the tesselator object |
void |
destroy()
Destroys the GLUtesselator object |
void |
edgeFlag(boolean edgeFlag)
Callback that handles edge flag setting. |
void |
end()
Callback that handles the end of polygon tesselation. |
void |
endPolygon()
Ends a polygon description of a polygon that is to be tesselated. |
void |
error(int error)
Callback that handles error conditions. |
GLComponent |
getComponent()
Returns the component associated with the tesselator |
boolean |
getTraceStatus()
Returns the trace status of the GLUTesselator lock |
void |
nextContour(int type)
Specifies the beginning of the next part of a polygon to tesselate and how the tesselation can be optimized. |
void |
release()
Releases the memory used internally by the tesselator |
void |
setTraceStatus(boolean mode)
Specifies the trace mode of the GLUTesselator lock |
void |
tessBeginContour()
Handler for tessBeginContour() |
void |
tessBeginPolygon(float[] userData)
Begins a polygon description that is to be tesselated. |
void |
tessEndContour()
Handler for tessEndContour() |
void |
tessEndPolygon()
Ends a polygon description of a polygon that is to be tesselated. |
void |
tessProperty(int property,
double value)
Specifies tesselator properties |
void |
tessVertex(double[] vertex,
double[] data)
Vertex tesselation |
void |
tessVertex(double[] vertex,
double[][] data)
Vertex tesselation helper method |
void |
tessVertex(double[] vertex,
float[] data)
Specifies vertex data to tesselate |
void |
tessVertex(double[] vertex,
float[][] data)
Vertex tesselation helper method |
void |
tessVertex(double[] vertex,
int[] data)
Vertex tesselation |
void |
tessVertex(double[] vertex,
int[][] data)
Vertex tesselation helper method |
void |
vertex(float[] vertex)
Callback that handles vertex data. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
public static final int BEGIN_CALLBACK
public static final int END_CALLBACK
public static final int VERTEX_CALLBACK
public static final int ERROR_CALLBACK
public static final int EDGEFLAG_CALLBACK
public static final int EDGE_FLAG_CALLBACK
public static final int COMBINE_CALLBACK
public CoreGL gl
public CoreGLU glu
public TraceGL tracegl
public TraceGLU traceglu
Constructor Detail |
public GLUTesselator()
public GLUTesselator(int callbacks)
callbacks
- A bitmask of the callbacks to registerMethod Detail |
public void destroy()
public void tessBeginContour()
public void tessEndContour()
public void tessProperty(int property, double value)
public void release()
public void deleteTess()
public GLComponent getComponent()
public void setTraceStatus(boolean mode)
public boolean getTraceStatus()
public void beginPolygon()
public void tessBeginPolygon(float[] userData)
public void endPolygon()
public void tessEndPolygon()
public void tessVertex(double[] vertex, float[] data)
public void tessVertex(double[] vertex, float[][] data)
public void tessVertex(double[] vertex, int[] data)
public void tessVertex(double[] vertex, int[][] data)
public void tessVertex(double[] vertex, double[] data)
public void tessVertex(double[] vertex, double[][] data)
public void nextContour(int type)
type
- Type of contourpublic void begin(int mode)
mode
- The rendering mode for a glBegin() call passed in via the tesselatorpublic void end()
public void vertex(float[] vertex)
vertex
- Vertex data passed in from the tesselator.public void error(int error)
error
- The GLU error number returned by the tesselator.public void edgeFlag(boolean edgeFlag)
edgeFlag
- The new edge flag settingpublic void combine(double[] coords, double[][] vertex, float[] weight, float[] dataOut)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |