|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimogl.factory.MeshFactory
public class MeshFactory
This class is used as a factory class for mesh objects
Constructor Summary | |
---|---|
MeshFactory()
|
Method Summary | |
---|---|
static MeshDL |
createBox(javax.media.opengl.GL gl,
float height,
float width,
float length)
Creates a box with the specified meassures |
static MeshVA |
createGoblin(javax.media.opengl.GL gl,
boolean drawShadow)
Returns a new instance of a goblin model. |
static MeshVA |
createHouse(javax.media.opengl.GL gl,
boolean drawShadow)
Returns a new instance of a house model. |
static MeshDL |
createSquare(javax.media.opengl.GL gl,
float height,
float width)
Creates a simple square with the specified meassures |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeshFactory()
Method Detail |
---|
public static MeshDL createBox(javax.media.opengl.GL gl, float height, float width, float length)
gl
- height
- height of the boxwidth
- width of the boxlength
- length of the box
public static MeshDL createSquare(javax.media.opengl.GL gl, float height, float width)
gl
- height
- height of the squarewidth
- width of the square
public static MeshVA createGoblin(javax.media.opengl.GL gl, boolean drawShadow)
gl
- drawShadow
- draw shadow? --> true = yes, false = no
public static MeshVA createHouse(javax.media.opengl.GL gl, boolean drawShadow)
gl
- drawShadow
- draw shadow? --> true = yes, false = no
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |