|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.terrain.roam.VertexData
public class VertexData
Collection of vertex information for a patch of terrain.
The data held is coordinate, texture coordinate and vertex colours. Setting up the class with the right flags helps to reduce the amount of data that is kept around.
Constructor Summary | |
---|---|
VertexData(int patchSize,
boolean hasTexture,
boolean hasColor)
Creates new VertexData that represents a fixed number of vertices. |
Method Summary | |
---|---|
byte[] |
getColors()
Return the complete set of color values held by this node. |
float[] |
getCoords()
Return the complete set of coordinates held by this node. |
float[] |
getTextureCoords()
Return the complete set of texture coordinates of this node |
int |
getVertexCount()
Get the number of vertices registered here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VertexData(int patchSize, boolean hasTexture, boolean hasColor)
patchSize
- The number of points on a sidehasTexture
- true if we have to represent texture coordinateshasColor
- true if we have to represent color valuesMethod Detail |
---|
public float[] getCoords()
public byte[] getColors()
public float[] getTextureCoords()
public int getVertexCount()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |