gui
Class Canvas.CallBack

java.lang.Object
  extended by GLUtessellatorCallbackAdapter
      extended by gui.Canvas.CallBack
Enclosing class:
Canvas

 class Canvas.CallBack
extends GLUtessellatorCallbackAdapter

Callback class for polygon tesselation.


Field Summary
private  GL gl
          the JOGL context
 
Constructor Summary
Canvas.CallBack(GL gl)
          Constructs the tesseltation callback.
 
Method Summary
 void begin(int type)
          Starts drawing the polygon.
 void combine(double[] coords, java.lang.Object[] data, float[] weight, java.lang.Object[] outData)
          Tells the tesseltation function how to blend two vertices.
 void end()
          Finishes drawing the polygon.
 void vertex(java.lang.Object vertexData)
          Specifies vertex data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gl

private GL gl
the JOGL context

Constructor Detail

Canvas.CallBack

public Canvas.CallBack(GL gl)
Constructs the tesseltation callback.

Parameters:
gl -
Method Detail

begin

public void begin(int type)
Starts drawing the polygon.


end

public void end()
Finishes drawing the polygon.


vertex

public void vertex(java.lang.Object vertexData)
Specifies vertex data.


combine

public void combine(double[] coords,
                    java.lang.Object[] data,
                    float[] weight,
                    java.lang.Object[] outData)
Tells the tesseltation function how to blend two vertices.