All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.magician.GLUTesselator
Summary |
public class GLUTesselator extends java.lang.Object { // Fields 8 public static final int BEGIN_CALLBACK; public static final int EDGEFLAG_CALLBACK; public static final int END_CALLBACK; public static final int ERROR_CALLBACK; public static final String VERSION; public static final int VERTEX_CALLBACK; public CoreGL gl; public CoreGLU glu; // Constructors 2 public GLUTesselator(); public GLUTesselator(int); // Methods 19 public void begin(int); public void beginPolygon(); public void deleteTess(); public native void destroy(); public void edgeFlag(boolean); public void end(); public void endPolygon(); public void error(int); public GLComponent getComponent(); public boolean getTraceStatus(); public native void nextContour(int); public void setTraceStatus(boolean); public void tessVertex(double[], double[]); public void tessVertex(double[], double[][]); public native void tessVertex(double[], float[]); public void tessVertex(double[], float[][]); public void tessVertex(double[], int[]); public void tessVertex(double[], int[][]); public void vertex(float[]); }
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.
See Also: GLU
Cross Reference |
Fields |
· VERSION | Summary | Top |
public static final String VERSION
Version information
· BEGIN_CALLBACK | Summary | Top |
public static final int BEGIN_CALLBACK
Tessellator callbacks
· END_CALLBACK | Summary | Top |
public static final int END_CALLBACK
· VERTEX_CALLBACK | Summary | Top |
public static final int VERTEX_CALLBACK
· ERROR_CALLBACK | Summary | Top |
public static final int ERROR_CALLBACK
· EDGEFLAG_CALLBACK | Summary | Top |
public static final int EDGEFLAG_CALLBACK
· gl | Summary | Top |
public CoreGL gl
Basic GL and GLU pipelines that can be used in subclassed tesselators
· glu | Summary | Top |
public CoreGLU glu
Constructors |
· GLUTesselator | Summary | Top |
public GLUTesselator()
Creates a new GLUTesselator object
· GLUTesselator | Summary | Top |
public GLUTesselator(int callbacks)
Creates a new GLUTesselator object registering only the stated callbacks
Parameter Description callbacks A bitmask of the callbacks to register
Methods |
· destroy | Summary | Top |
public native void destroy()
Destroys the GLUtesselator object
· deleteTess | Summary | Top |
public void deleteTess()
Destroys the tesselator object
· getComponent | Summary | Top |
public GLComponent getComponent()
Returns the component associated with the tesselator
· setTraceStatus | Summary | Top |
public void setTraceStatus(boolean mode)
Specifies the trace mode of the GLUTesselator lock
· getTraceStatus | Summary | Top |
public boolean getTraceStatus()
Returns the trace status of the GLUTesselator lock
· beginPolygon | Summary | Top |
public void beginPolygon()
Begins a polygon description that is to be tesselated. This exclusively locks the current tesselator until endPolygon() is called to ensure that multiple tesselators aren't trying to tesselate simultaneously. This causes problems.
· endPolygon | Summary | Top |
public void endPolygon()
Ends a polygon description of a polygon that is to be tesselated. Also, the tesselator exclusion lock is released.
· tessVertex | Summary | Top |
public native void tessVertex(double[] vertex, float[] data)
Specifies vertex data to tesselate
· tessVertex | Summary | Top |
public void tessVertex(double[] vertex, float[][] data)
Vertex tesselation helper method
· tessVertex | Summary | Top |
public void tessVertex(double[] vertex, int[] data)
Vertex tesselation
· tessVertex | Summary | Top |
public void tessVertex(double[] vertex, int[][] data)
Vertex tesselation helper method
· tessVertex | Summary | Top |
public void tessVertex(double[] vertex, double[] data)
Vertex tesselation
· tessVertex | Summary | Top |
public void tessVertex(double[] vertex, double[][] data)
Vertex tesselation helper method
· nextContour | Summary | Top |
public native void nextContour(int type)
Specifies the beginning of the next part of a polygon to tesselate and how the tesselation can be optimized.
Parameter Description type Type of contour
· begin | Summary | Top |
public void begin(int mode)
Callback that handles the beginning of polygon tesselation. This should be overridden in your own application as it is a no-operation in this class.
Parameter Description mode The rendering mode for a glBegin() call passed in via the tesselator
· end | Summary | Top |
public void end()
Callback that handles the end of polygon tesselation. This should be overridden in your own application as it is a no-operation in this class.
· vertex | Summary | Top |
public void vertex(float[] vertex)
Callback that handles vertex data. This should be overridden in your own application as it is a no-operation in this class.
Parameter Description vertex Vertex data passed in from the tesselator.
· error | Summary | Top |
public void error(int error)
Callback that handles error conditions. This should be overridden in your own application.
Parameter Description error The GLU error number returned by the tesselator.
· edgeFlag | Summary | Top |
public void edgeFlag(boolean edgeFlag)
Callback that handles edge flag setting. This should be overridden in your own application.
Parameter Description edgeFlag The new edge flag setting
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7