public abstract class BaseMesh extends BaseGraphicsResource implements Mesh
Modifier and Type | Class and Description |
---|---|
static class |
BaseMesh.FaceMembers |
Modifier and Type | Field and Description |
---|---|
static int |
FACE_MEMBERS_SIZE |
protected static int |
NORMAL_SIZE |
protected static int |
NORMAL_SIZE_VB |
protected static int |
POINT_SIZE |
protected static int |
POINT_SIZE_VB |
protected static int |
TEXCOORD_SIZE |
protected static int |
TEXCOORD_SIZE_VB |
protected static int |
VERTEX_SIZE_VB |
disposerRecord
Modifier | Constructor and Description |
---|---|
protected |
BaseMesh(Disposer.Record disposerRecord) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildGeometry(boolean userDefinedNormals,
float[] points,
int[] pointsFromAndLengthIndices,
float[] normals,
int[] normalsFromAndLengthIndices,
float[] texCoords,
int[] texCoordsFromAndLengthIndices,
int[] faces,
int[] facesFromAndLengthIndices,
int[] faceSmoothingGroups,
int[] faceSmoothingGroupsFromAndLengthIndices) |
abstract boolean |
buildNativeGeometry(float[] vertexBuffer,
int vertexBufferLength,
int[] indexBufferInt,
int indexBufferLength) |
abstract boolean |
buildNativeGeometry(float[] vertexBuffer,
int vertexBufferLength,
short[] indexBufferShort,
int indexBufferLength) |
int[] |
getFace(int fIdx,
int[] face) |
int |
getNumFaces() |
int |
getNumTVerts() |
int |
getNumVerts() |
Vec2f |
getTVertex(int tIdx,
Vec2f texCoord) |
Vec3f |
getVertex(int pIdx,
Vec3f vertex) |
dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
protected static final int POINT_SIZE
protected static final int NORMAL_SIZE
protected static final int TEXCOORD_SIZE
protected static final int POINT_SIZE_VB
protected static final int TEXCOORD_SIZE_VB
protected static final int NORMAL_SIZE_VB
protected static final int VERTEX_SIZE_VB
public static final int FACE_MEMBERS_SIZE
protected BaseMesh(Disposer.Record disposerRecord)
public abstract boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, int[] indexBufferInt, int indexBufferLength)
public abstract boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, short[] indexBufferShort, int indexBufferLength)
public boolean buildGeometry(boolean userDefinedNormals, float[] points, int[] pointsFromAndLengthIndices, float[] normals, int[] normalsFromAndLengthIndices, float[] texCoords, int[] texCoordsFromAndLengthIndices, int[] faces, int[] facesFromAndLengthIndices, int[] faceSmoothingGroups, int[] faceSmoothingGroupsFromAndLengthIndices)
buildGeometry
in interface Mesh
public int getNumVerts()
public int getNumTVerts()
public int getNumFaces()
public int[] getFace(int fIdx, int[] face)
Copyright © 2020. All rights reserved.