public class Mesh
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BONE_BYTE_STRIDE |
static int |
BONE_INDEX_OFFSET |
static int |
BONE_WEIGHT_OFFSET |
static int |
MAX_BONES_PER_MESH |
static int |
MAX_BONES_PER_VERTEX |
Constructor and Description |
---|
Mesh(float[] vertexData,
short[] drawOrder,
int vertexCount) |
Modifier and Type | Method and Description |
---|---|
java.nio.FloatBuffer |
getBoneBuffer() |
AABB |
getBoundingBox() |
short[] |
getDrawOrder() |
java.nio.ShortBuffer |
getDrawOrderBuffer() |
int |
getVertexCount() |
float[] |
getVertexData() |
void |
setVertexBones(float[] boneData)
Assign vertices to bones.
|
void |
setVertexInfo(int index,
float info) |
public static final int MAX_BONES_PER_VERTEX
public static final int BONE_BYTE_STRIDE
public static final int MAX_BONES_PER_MESH
public static final int BONE_INDEX_OFFSET
public static final int BONE_WEIGHT_OFFSET
public void setVertexBones(float[] boneData)
public java.nio.FloatBuffer getBoneBuffer()
public short[] getDrawOrder()
public java.nio.ShortBuffer getDrawOrderBuffer()
public float[] getVertexData()
public int getVertexCount()
public AABB getBoundingBox()
public void setVertexInfo(int index, float info)