processing.opengl
Class PGraphicsOpenGL.TessCallback
java.lang.Object
javax.media.opengl.glu.GLUtessellatorCallbackAdapter
processing.opengl.PGraphicsOpenGL.TessCallback
- All Implemented Interfaces:
- javax.media.opengl.glu.GLUtessellatorCallback
- Enclosing class:
- PGraphicsOpenGL
public class PGraphicsOpenGL.TessCallback
- extends javax.media.opengl.glu.GLUtessellatorCallbackAdapter
There must be a better way to do this, but I'm having a brain fart
with all the inner class crap. Fix it later once this stuff is debugged.
The method "void vertex(float $1, float $2, float $3);" contained in
the enclosing type "processing.core.PGraphics3" is a perfect match for
this method call. However, it is not visible in this nested class because
a method with the same name in an intervening class is hiding it.
Method Summary |
void |
begin(int type)
|
void |
combine(double[] coords,
java.lang.Object[] data,
float[] weight,
java.lang.Object[] outData)
Implementation of the GLU_TESS_COMBINE callback. |
void |
edge(boolean e)
|
void |
end()
|
void |
error(int errnum)
|
void |
vertex(java.lang.Object data)
|
Methods inherited from class javax.media.opengl.glu.GLUtessellatorCallbackAdapter |
beginData, combineData, edgeFlag, edgeFlagData, endData, errorData, vertexData |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PGraphicsOpenGL.TessCallback
public PGraphicsOpenGL.TessCallback()
begin
public void begin(int type)
- Specified by:
begin
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
begin
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
end
public void end()
- Specified by:
end
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
end
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
edge
public void edge(boolean e)
vertex
public void vertex(java.lang.Object data)
- Specified by:
vertex
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
vertex
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
error
public void error(int errnum)
- Specified by:
error
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
error
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
combine
public void combine(double[] coords,
java.lang.Object[] data,
float[] weight,
java.lang.Object[] outData)
- Implementation of the GLU_TESS_COMBINE callback.
- Specified by:
combine
in interface javax.media.opengl.glu.GLUtessellatorCallback
- Overrides:
combine
in class javax.media.opengl.glu.GLUtessellatorCallbackAdapter
- Parameters:
coords
- is the 3-vector of the new vertexdata
- is the vertex data to be combined, up to four elements.
This is useful when mixing colors together or any other
user data that was passed in to gluTessVertex.weight
- is an array of weights, one for each element of "data"
that should be linearly combined for new values.outData
- is the set of new values of "data" after being
put back together based on the weights. it's passed back as a
single element Object[] array because that's the closest
that Java gets to a pointer.