|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.geometry.AbstractMesh
simogl.geometry.MeshDL
public class MeshDL
This class represents a mesh. The mesh uses the display list technology.
| Constructor Summary | |
|---|---|
MeshDL(javax.media.opengl.GL gl)
Creates a new mesh object |
|
| Method Summary | |
|---|---|
void |
createDisplayList(javax.media.opengl.GL gl)
This method creates the display list for the mesh object. |
void |
deleteMesh(javax.media.opengl.GL gl)
Deletes the mesh |
void |
draw(javax.media.opengl.GL gl)
Call this method to draw the mesh |
int |
getMeshID()
Returns the unique id for this mesh |
void |
setMeshID(int id)
Sets the unique mesh id |
void |
specializedDraw(javax.media.opengl.GL gl)
Helper method to extract the specialised things just fitting to drawing of display list. |
| Methods inherited from class simogl.geometry.AbstractMesh |
|---|
addFace, disableRenderOptions, drawShadow, enableRenderOptions, getBoundingBox, getFaces, getMaterial, getPosition, getPositionX, getPositionY, getPositionZ, getRoationX, getRoationY, getRoationZ, getRotation, getTexture, isTransparent, performTransformations, rotate, rotateAxxisX, rotateAxxisY, rotateAxxisZ, scale, setDrawShadow, setEnabledFaceCulling, setMaterial, setPosition, setPosition, setPositionX, setPositionY, setPositionZ, setTexture, setTransparent, showBoundingBox, showWireFrame |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MeshDL(javax.media.opengl.GL gl)
gl - | Method Detail |
|---|
public int getMeshID()
public void setMeshID(int id)
id - unique mesh idpublic void createDisplayList(javax.media.opengl.GL gl)
gl - public void draw(javax.media.opengl.GL gl)
draw in class AbstractMeshgl - public void specializedDraw(javax.media.opengl.GL gl)
specializedDraw in class AbstractMeshgl - public void deleteMesh(javax.media.opengl.GL gl)
deleteMesh in class AbstractMeshgl -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||