net.java.games.jogl

Class GLUtesselatorCallbackAdapter

Implemented Interfaces:
GLUtesselatorCallback

public class GLUtesselatorCallbackAdapter
extends java.lang.Object
implements GLUtesselatorCallback

The GLUtesselatorCallbackAdapter provides a default implementation of GLUtesselatorCallback with empty callback methods. This class can be extended to provide user defined callback methods.
Authors:
Eric Veach, July 1994
Java Port: Pepijn Van Eechhoudt, July 2003
Java Port: Nathan Parker Burg, August 2003

Method Summary

void
begin(int type)
void
beginData(int type, Object polygonData)
void
combine(double[] coords, Object[] data, float[] weight, Object[] outData)
void
combineData(double[] coords, Object[] data, float[] weight, Object[] outData, Object polygonData)
void
edgeFlag(boolean boundaryEdge)
void
edgeFlagData(boolean boundaryEdge, Object polygonData)
void
end()
void
endData(Object polygonData)
void
error(int errnum)
void
errorData(int errnum, Object polygonData)
void
vertex(Object vertexData)
void
vertexData(Object vertexData, Object polygonData)

Method Details

begin

public void begin(int type)
Specified by:
begin in interface GLUtesselatorCallback

beginData

public void beginData(int type,
                      Object polygonData)
Specified by:
beginData in interface GLUtesselatorCallback

combine

public void combine(double[] coords,
                    Object[] data,
                    float[] weight,
                    Object[] outData)
Specified by:
combine in interface GLUtesselatorCallback

combineData

public void combineData(double[] coords,
                        Object[] data,
                        float[] weight,
                        Object[] outData,
                        Object polygonData)
Specified by:
combineData in interface GLUtesselatorCallback

edgeFlag

public void edgeFlag(boolean boundaryEdge)
Specified by:
edgeFlag in interface GLUtesselatorCallback

edgeFlagData

public void edgeFlagData(boolean boundaryEdge,
                         Object polygonData)
Specified by:
edgeFlagData in interface GLUtesselatorCallback

end

public void end()
Specified by:
end in interface GLUtesselatorCallback

endData

public void endData(Object polygonData)
Specified by:
endData in interface GLUtesselatorCallback

error

public void error(int errnum)
Specified by:
error in interface GLUtesselatorCallback

errorData

public void errorData(int errnum,
                      Object polygonData)
Specified by:
errorData in interface GLUtesselatorCallback

vertex

public void vertex(Object vertexData)
Specified by:
vertex in interface GLUtesselatorCallback

vertexData

public void vertexData(Object vertexData,
                       Object polygonData)
Specified by:
vertexData in interface GLUtesselatorCallback