javax.media.opengl.glu

Class GLUtessellatorCallbackAdapter

Implemented Interfaces:
GLUtessellatorCallback

public class GLUtessellatorCallbackAdapter
extends Object
implements GLUtessellatorCallback

The GLUtessellatorCallbackAdapter provides a default implementation of GLUtessellatorCallback 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 GLUtessellatorCallback

beginData

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

combine

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

combineData

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

edgeFlag

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

edgeFlagData

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

end

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

endData

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

error

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

errorData

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

vertex

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

vertexData

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

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.