|
||||||||||
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.SkyBox
public class SkyBox
This class represents the skybox of the scene
Constructor Summary | |
---|---|
SkyBox(javax.media.opengl.GL gl,
float height,
float width,
float length)
Creates a new skybox for the scene with the specified size. |
Method Summary | |
---|---|
void |
createDisplayList(javax.media.opengl.GL gl)
Creates the display list for the skybox. |
void |
draw(javax.media.opengl.GL gl)
Draws the skybox to the scene |
static void |
setMaterialAmbDiff(float red,
float green,
float blue,
float alpha)
Static method to set the material color of the skybox from virtually everywhere |
void |
setTextureBottom(com.sun.opengl.util.texture.Texture texture)
Sets the bottom texture of the skybox |
void |
setTextureEast(com.sun.opengl.util.texture.Texture texture)
Sets the eastern texture of the skybox |
void |
setTextureNorth(com.sun.opengl.util.texture.Texture texture)
Sets the northern texture of the skybox |
void |
setTextureSouth(com.sun.opengl.util.texture.Texture texture)
Sets the southern texture of the skybox |
void |
setTextureTop(com.sun.opengl.util.texture.Texture texture)
Sets the top texture of the skybox |
void |
setTextureWest(com.sun.opengl.util.texture.Texture texture)
Sets the western texture of the skybox |
Methods inherited from class simogl.geometry.MeshDL |
---|
deleteMesh, 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 SkyBox(javax.media.opengl.GL gl, float height, float width, float length)
gl
- height
- heiht of the skyboxwidth
- width of the skyboxlength
- length of the skyboxMethod Detail |
---|
public void setTextureNorth(com.sun.opengl.util.texture.Texture texture)
texture
- northern skybox texturepublic void setTextureSouth(com.sun.opengl.util.texture.Texture texture)
texture
- southern skybox texturepublic void setTextureEast(com.sun.opengl.util.texture.Texture texture)
texture
- eastern skybox texturepublic void setTextureWest(com.sun.opengl.util.texture.Texture texture)
texture
- western skybox texturepublic void setTextureTop(com.sun.opengl.util.texture.Texture texture)
texture
- top skybox texturepublic void setTextureBottom(com.sun.opengl.util.texture.Texture texture)
texture
- bottom skybox texturepublic void createDisplayList(javax.media.opengl.GL gl)
createDisplayList
in class MeshDL
gl
- public static void setMaterialAmbDiff(float red, float green, float blue, float alpha)
red
- amount of redgreen
- amount of greenblue
- amount of bluealpha
- amount of alphapublic 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 |