|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.geometry.AbstractMesh
simogl.geometry.MeshDL
simogl.level.Terrain
public class Terrain
This class represents a world's terrain, that is generated from a height map file.
| Constructor Summary | |
|---|---|
Terrain(javax.media.opengl.GL gl,
java.io.File file,
int mapSize,
int resFactor)
Creates a new height map of the specified file with the specified height map rendering resolution factor. |
|
| Method Summary | |
|---|---|
int |
getResolution()
Returns the resolution factor of the terrain. |
| Methods inherited from class simogl.geometry.MeshDL |
|---|
createDisplayList, deleteMesh, draw, getMeshID, setMeshID, specializedDraw |
| 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 Terrain(javax.media.opengl.GL gl,
java.io.File file,
int mapSize,
int resFactor)
gl - file - file that contains the height map datamapSize - pixel width/height of the height map imageresFactor - height map rendering resolution factor| Method Detail |
|---|
public int getResolution()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||