|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshDL
de.rico.engine.geometry.SkyBox
public class SkyBox
This class represents the skybox of the scene
Constructor Summary | |
---|---|
SkyBox(float height,
float width,
float length)
Creates a new skybox for the scene with the specified size. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
Draws the skybox to the scene. |
void |
finishModel()
Creates the display list for the skybox. |
java.lang.String |
getPathBottom()
Returns the file path to the bottom sky box texture. |
java.lang.String |
getPathEast()
Returns the file path to the eastern sky box texture. |
java.lang.String |
getPathNorth()
Returns the file path to the nothern sky box texture. |
java.lang.String |
getPathSouth()
Returns the file path to the southern sky box texture. |
java.lang.String |
getPathTop()
Returns the file path to the top sky box texture. |
java.lang.String |
getPathWest()
Returns the file path to the western sky box texture. |
void |
init()
Initializes the skybox for use |
void |
setTextureBottom(java.lang.String path)
Sets the bottom texture of the skybox |
void |
setTextureEast(java.lang.String path)
Sets the eastern texture of the skybox |
void |
setTextureNorth(java.lang.String path)
Sets the northern texture of the skybox |
void |
setTextureSouth(java.lang.String path)
Sets the southern texture of the skybox |
void |
setTextureTop(java.lang.String path)
Sets the top texture of the skybox |
void |
setTextureWest(java.lang.String path)
Sets the western texture of the skybox |
Methods inherited from class de.rico.engine.geometry.MeshDL |
---|
addFace, destroy, getDisplayListId, getFaces, getFacesTransformed, specializedDraw, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkyBox(float height, float width, float length)
height
- heiht of the skyboxwidth
- width of the skyboxlength
- length of the skyboxMethod Detail |
---|
public void setTextureSouth(java.lang.String path)
path
- path to southern skybox texturepublic void setTextureNorth(java.lang.String path)
path
- path to nothern skybox texturepublic void setTextureEast(java.lang.String path)
path
- path to eastern skybox texturepublic void setTextureWest(java.lang.String path)
path
- path to western skybox texturepublic void setTextureTop(java.lang.String path)
path
- path to top skybox texturepublic void setTextureBottom(java.lang.String path)
path
- path to bottom skybox texturepublic java.lang.String getPathNorth()
public java.lang.String getPathSouth()
public java.lang.String getPathEast()
public java.lang.String getPathWest()
public java.lang.String getPathTop()
public java.lang.String getPathBottom()
public void finishModel()
finishModel
in class MeshDL
public void init()
public void draw(javax.media.opengl.GL gl)
draw
in class MeshDL
gl
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |