public class VertexData extends Object
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 and Description |
|---|
VertexData(int patchSize,
boolean hasTexture,
boolean hasColor)
Creates new VertexData that represents a fixed number of vertices.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 valuespublic float[] getCoords()
public byte[] getColors()
public float[] getTextureCoords()
public int getVertexCount()
Copyright © 2001 - 2015 j3d.org