| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private static float[] |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | createChain(float[]
an array of floats of alternating x, y coordinates. vertices)Create a chain with isolated end vertices. |
| public void | createChain(float[]
an array of floats of alternating x, y coordinates. vertices, int into the vertices array offset, int after offset (in floats, not float-pairs, so even number) length)Create a chain with isolated end vertices. |
| public void | createChain(Vector2[]
an array of vertices, these are copied vertices)Create a chain with isolated end vertices. |
| public void | |
| public void | createLoop(float[]
an array of floats of alternating x, y coordinates. vertices, int into the vertices array offset, int after offset (in floats, not float-pairs, so even number) length)Create a loop. |
| public void | |
| public Shape. | getType()
Implements abstract com. Get the type of this shape. |
| public void | |
| public int | |
| public boolean | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| private native int | |
| private native void | |
| private native void | |
| private native long | |
| public void | |
| public void | setNextVertex(float nextVertexX, float nextVertexY)
Establish connectivity to a vertex that follows the last vertex. |
| public void | |
| public void | setPrevVertex(float prevVertexX, float prevVertexY)
Establish connectivity to a vertex that precedes the first vertex. |
| isLooped | back to summary |
|---|---|
| pack-priv boolean isLooped | |
| verts | back to summary |
|---|---|
| private static float[] verts | |
| ChainShape | back to summary |
|---|---|
| public ChainShape() | |
| ChainShape | back to summary |
|---|---|
| pack-priv ChainShape(long addr) | |
| clear | back to summary |
|---|---|
| public void clear() Clear all vertices in the chain and free the memory. | |
| createChain | back to summary |
|---|---|
| public void createChain(float[] vertices) Create a chain with isolated end vertices.
| |
| createChain | back to summary |
|---|---|
| public void createChain(float[] vertices, int offset, int length) Create a chain with isolated end vertices.
| |
| createChain | back to summary |
|---|---|
| public void createChain(Vector2[] vertices) Create a chain with isolated end vertices.
| |
| createLoop | back to summary |
|---|---|
| public void createLoop(float[] vertices) Create a loop. This automatically adjusts connectivity.
| |
| createLoop | back to summary |
|---|---|
| public void createLoop(float[] vertices, int offset, int length) Create a loop. This automatically adjusts connectivity.
| |
| createLoop | back to summary |
|---|---|
| public void createLoop(Vector2[] vertices) Create a loop. This automatically adjusts connectivity.
| |
| getType | back to summary |
|---|---|
| public Shape. Implements abstract com. Doc from com. Get the type of this shape. You can use this to down cast to the concrete shape.
| |
| getVertex | back to summary |
|---|---|
| public void getVertex(int index, Vector2 vertex) Returns the vertex at the given position.
| |
| getVertexCount | back to summary |
|---|---|
public int getVertexCount()
| |
| isLooped | back to summary |
|---|---|
| public boolean isLooped() | |
| jniClear | back to summary |
|---|---|
| private native void jniClear(long addr) | |
| jniCreateChain | back to summary |
|---|---|
| private native void jniCreateChain(long addr, float[] verts, int offset, int numVertices) | |
| jniCreateLoop | back to summary |
|---|---|
| private native void jniCreateLoop(long addr, float[] verts, int offset, int numVertices) | |
| jniGetVertex | back to summary |
|---|---|
| private native void jniGetVertex(long addr, int index, float[] verts) | |
| jniGetVertexCount | back to summary |
|---|---|
| private native int jniGetVertexCount(long addr) | |
| jniSetNextVertex | back to summary |
|---|---|
| private native void jniSetNextVertex(long addr, float x, float y) | |
| jniSetPrevVertex | back to summary |
|---|---|
| private native void jniSetPrevVertex(long addr, float x, float y) | |
| newChainShape | back to summary |
|---|---|
| private native long newChainShape() | |
| setNextVertex | back to summary |
|---|---|
| public void setNextVertex(Vector2 nextVertex) Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. | |
| setNextVertex | back to summary |
|---|---|
| public void setNextVertex(float nextVertexX, float nextVertexY) Establish connectivity to a vertex that follows the last vertex. Don't call this for loops. | |
| setPrevVertex | back to summary |
|---|---|
| public void setPrevVertex(Vector2 prevVertex) Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. | |
| setPrevVertex | back to summary |
|---|---|
| public void setPrevVertex(float prevVertexX, float prevVertexY) Establish connectivity to a vertex that precedes the first vertex. Don't call this for loops. | |