|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectm3g05.mesh.MeshUtils
public class MeshUtils
Utility methods for meshes.
| Field Summary | |
|---|---|
private static int[] |
lastTriIndices
Holds the triangle indices of the mesh generated last. |
private static int[] |
lastTriLengths
Holds the strip lengths of the mesh generated last. |
| Constructor Summary | |
|---|---|
private |
MeshUtils()
Constructor has private access because class contains static methods exclusively. |
| Method Summary | |
|---|---|
static void |
addRandomColors(javax.microedition.m3g.Mesh mesh)
Assigns a random color to each vertex of a mesh. |
static void |
copyTexCoords(javax.microedition.m3g.Mesh mesh,
int src,
int dest)
Duplicates texture coordinates from one unit to another. |
static int[] |
getLastTriangleIndices()
Access to the triangle indices of the mesh generated last. |
static int[] |
getLastTriangleLengths()
Access to the strip lengths of the mesh generated last. |
static void |
setLastTriangleIndices(int[] lastTriIndices)
Sets the triangle indices of the mesh generated last. |
static void |
setLastTriangleLengths(int[] lastTriLengths)
Sets the strip lengths of the mesh generated last. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static int[] lastTriIndices
private static int[] lastTriLengths
| Constructor Detail |
|---|
private MeshUtils()
| Method Detail |
|---|
public static int[] getLastTriangleIndices()
WireframeSample needs this information, but M3G 1.0
doesn't yet allow to read this data from a
VertexBuffer.
public static void setLastTriangleIndices(int[] lastTriIndices)
WireframeSample needs this information, but M3G 1.0
doesn't yet allow to read this data from a
VertexBuffer.
lastTriIndices - triangle indices.public static int[] getLastTriangleLengths()
WireframeSample needs this information, but M3G 1.0
doesn't yet allow to read this data from a
VertexBuffer.
public static void setLastTriangleLengths(int[] lastTriLengths)
WireframeSample needs this information, but M3G 1.0
doesn't yet allow to read this data from a
VertexBuffer.
lastTriLengths - strip lengths.public static void addRandomColors(javax.microedition.m3g.Mesh mesh)
mesh - mesh to add color to.
public static void copyTexCoords(javax.microedition.m3g.Mesh mesh,
int src,
int dest)
mesh - mesh with texture coordinates.src - source texture unit.dest - destination texture unit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||