class ES2Mesh extends BaseMesh
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ES2Mesh.ES2MeshDisposerRecord |
BaseMesh.FaceMembers
Modifier and Type | Field and Description |
---|---|
private ES2Context |
context |
(package private) static int |
count |
private long |
nativeHandle |
FACE_MEMBERS_SIZE, NORMAL_SIZE, NORMAL_SIZE_VB, POINT_SIZE, POINT_SIZE_VB, TEXCOORD_SIZE, TEXCOORD_SIZE_VB, VERTEX_SIZE_VB
disposerRecord
Modifier | Constructor and Description |
---|---|
private |
ES2Mesh(ES2Context context,
long nativeHandle,
Disposer.Record disposerRecord) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildNativeGeometry(float[] vertexBuffer,
int vertexBufferLength,
int[] indexBufferInt,
int indexBufferLength) |
boolean |
buildNativeGeometry(float[] vertexBuffer,
int vertexBufferLength,
short[] indexBufferShort,
int indexBufferLength) |
(package private) static ES2Mesh |
create(ES2Context context) |
void |
dispose() |
int |
getCount() |
(package private) long |
getNativeHandle() |
buildGeometry, getFace, getNumFaces, getNumTVerts, getNumVerts, getTVertex, getVertex
static int count
private final ES2Context context
private final long nativeHandle
private ES2Mesh(ES2Context context, long nativeHandle, Disposer.Record disposerRecord)
static ES2Mesh create(ES2Context context)
long getNativeHandle()
public void dispose()
dispose
in interface GraphicsResource
dispose
in class BaseGraphicsResource
public int getCount()
public boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, int[] indexBufferInt, int indexBufferLength)
buildNativeGeometry
in class BaseMesh
public boolean buildNativeGeometry(float[] vertexBuffer, int vertexBufferLength, short[] indexBufferShort, int indexBufferLength)
buildNativeGeometry
in class BaseMesh