|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectm3g04.mesh.MeshFactory2D
public class MeshFactory2D
Factory methods for 2D meshes.
| Constructor Summary | |
|---|---|
private |
MeshFactory2D()
Constructor has private access because class contains static methods exclusively. |
| Method Summary | |
|---|---|
static javax.microedition.m3g.Mesh |
createDisc(int slices)
Creates a disc with radius one on the x-y plane. |
static javax.microedition.m3g.Mesh |
createQuad(boolean addTexCoords)
Creates a quad with a side length of two units on the x-y plane. |
static javax.microedition.m3g.Mesh |
createTriangle()
Creates a triangle on the x-y plane. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private MeshFactory2D()
| Method Detail |
|---|
public static javax.microedition.m3g.Mesh createQuad(boolean addTexCoords)
addTexCoords - true to generate texture coordinates, false
otherwise.
public static javax.microedition.m3g.Mesh createTriangle()
public static javax.microedition.m3g.Mesh createDisc(int slices)
slices - number of slices
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||