|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.nodes.Node
net.java.joglutils.msg.nodes.Shape
net.java.joglutils.msg.nodes.TriangleBasedShape
net.java.joglutils.msg.nodes.TriangleSet
public class TriangleSet
A TriangleSet assembles the coordinates specified by a Coordinate3 node, and any auxiliary nodes such as a TextureCoordinate2 node, into a set of triangles.
Constructor Summary | |
---|---|
TriangleSet()
|
Method Summary | |
---|---|
void |
generateTriangles(Action action,
TriangleCallback cb)
Based on the state in the given Action, calls the specified triangle callback for each triangle in the shape. |
int |
getNumTriangles()
Returns the number of triangles this TriangleSet references. |
void |
render(GLRenderAction action)
Support for the built-in GLRenderAction. |
void |
setNumTriangles(int numTriangles)
Sets the number of triangles this TriangleSet references. |
Methods inherited from class net.java.joglutils.msg.nodes.TriangleBasedShape |
---|
rayPick |
Methods inherited from class net.java.joglutils.msg.nodes.Node |
---|
doAction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriangleSet()
Method Detail |
---|
public void setNumTriangles(int numTriangles)
public int getNumTriangles()
public void render(GLRenderAction action)
Node
render
in class Node
public void generateTriangles(Action action, TriangleCallback cb)
TriangleBasedShape
generateTriangles
in class TriangleBasedShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |