espresso3d.engine.world.sky
Class E3DSkyBox

java.lang.Object
  extended byespresso3d.engine.base.E3DEngineItem
      extended byespresso3d.engine.renderer.base.E3DRenderable
          extended byespresso3d.engine.world.sky.E3DSkyObject
              extended byespresso3d.engine.world.sky.E3DSkyBox

public class E3DSkyBox
extends E3DSkyObject

Author:
Curt A SkyBox is a sky object with 6 sides. It completely surrounds the viewport's camera actor and always stays centered around the viewport's camera actor.

Field Summary
 
Fields inherited from class espresso3d.engine.world.sky.E3DSkyObject
position, scale
 
Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME
 
Constructor Summary
E3DSkyBox(E3DEngine engine, java.lang.String frontTexture, java.lang.String backTexture, java.lang.String leftTexture, java.lang.String rightTexture, java.lang.String topTexture, java.lang.String bottomTexture)
          Construct a new sky box
 
Method Summary
 E3DQuad getBack()
          Get the quad for the back face of the SkyBox
 E3DQuad getBottom()
          Get the quad for the bottom face of the SkyBox
 E3DQuad getFront()
          Get the quad for the front face of the SkyBox
 E3DQuad getLeft()
          Get the quad for the left face of the SkyBox
 E3DQuad getRight()
          Get the quad for the right face of the SkyBox
 E3DQuad getTop()
          Get the quad for the top face of the SkyBox
 void renderAtPosition(E3DVector3F position)
           
 void scale(double scaleAmt)
          Scale the skybox.
 void setPosition(E3DVector3F position)
          Set the position the sky box should center around.
 void translate(E3DVector3F translationAmt)
          Translate the skybox.
 
Methods inherited from class espresso3d.engine.world.sky.E3DSkyObject
getPosition, getScale, getWorld, setScale, setWorld, update
 
Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable
getRenderableOptionsKey, getRenderMode, initCorrectGeometryRenderer, render, setRenderMode
 
Methods inherited from class espresso3d.engine.base.E3DEngineItem
getEngine, setEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DSkyBox

public E3DSkyBox(E3DEngine engine,
                 java.lang.String frontTexture,
                 java.lang.String backTexture,
                 java.lang.String leftTexture,
                 java.lang.String rightTexture,
                 java.lang.String topTexture,
                 java.lang.String bottomTexture)
Construct a new sky box

Parameters:
engine - Enine the skybox resides in
frontTexture - Texture name for the front face of the box
backTexture - Texture name for the back face of the box
leftTexture - Texture name for the left face of the box
rightTexture - Texture name for the right face of the box
topTexture - Texture name for the top face of the box
bottomTexture - Texture name for the bottom face of the box
Method Detail

getFront

public E3DQuad getFront()
Get the quad for the front face of the SkyBox

Returns:

getBack

public E3DQuad getBack()
Get the quad for the back face of the SkyBox

Returns:

getLeft

public E3DQuad getLeft()
Get the quad for the left face of the SkyBox

Returns:

getRight

public E3DQuad getRight()
Get the quad for the right face of the SkyBox

Returns:

getBottom

public E3DQuad getBottom()
Get the quad for the bottom face of the SkyBox

Returns:

getTop

public E3DQuad getTop()
Get the quad for the top face of the SkyBox

Returns:

renderAtPosition

public void renderAtPosition(E3DVector3F position)
Specified by:
renderAtPosition in class E3DRenderable

setPosition

public void setPosition(E3DVector3F position)
Set the position the sky box should center around. This is normally only used by the engine

Specified by:
setPosition in class E3DSkyObject
Parameters:
position -

translate

public void translate(E3DVector3F translationAmt)
Translate the skybox. Normally only used by the engine

Specified by:
translate in class E3DSkyObject
Parameters:
translationAmt -

scale

public void scale(double scaleAmt)
Scale the skybox. Normally only used by the engine.

Specified by:
scale in class E3DSkyObject
Parameters:
scaleAmt -