env3d.advanced
Class EnvSkyRoom
java.lang.Object
env3d.GameObjectAdapter
env3d.RoomAdapter
env3d.advanced.EnvSkyRoom
public class EnvSkyRoom
- extends RoomAdapter
Creates a sky box
Fields inherited from class env3d.GameObjectAdapter |
assetManager, currentAction, currentModel, currentTexture, internalObject, jme_node, lighting, locator, mat, mat_lit, objectCache, q, qX, qY, qZ |
Constructor Summary |
EnvSkyRoom(double width,
double height,
double depth,
java.lang.String north,
java.lang.String east,
java.lang.String south,
java.lang.String west,
java.lang.String top,
java.lang.String bottom)
Deprecated. |
EnvSkyRoom(java.lang.String skyRoomDirectory)
Constructs a skybox from the directory. |
EnvSkyRoom(java.lang.String north,
java.lang.String east,
java.lang.String south,
java.lang.String west,
java.lang.String top,
java.lang.String bottom)
Constructor for the SkyRoom. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvSkyRoom
public EnvSkyRoom(java.lang.String skyRoomDirectory)
- Constructs a skybox from the directory.
Assumes that the following six files are present inside that
directory:
top.png, bottom.png, north.png, east.png, south.png, west.png
- Parameters:
skyRoomDirectory
-
EnvSkyRoom
public EnvSkyRoom(java.lang.String north,
java.lang.String east,
java.lang.String south,
java.lang.String west,
java.lang.String top,
java.lang.String bottom)
- Constructor for the SkyRoom. Must provide all the necessary information
and cannot be changed after it has been created.
- Parameters:
north
- east
- south
- west
- top
- bottom
-
EnvSkyRoom
@Deprecated
public EnvSkyRoom(double width,
double height,
double depth,
java.lang.String north,
java.lang.String east,
java.lang.String south,
java.lang.String west,
java.lang.String top,
java.lang.String bottom)
- Deprecated.
setXYZ
public void setXYZ(double x,
double y,
double z)
getJmeSkybox
public com.jme3.scene.Spatial getJmeSkybox()
- Returns:
- the skyBox
setBackgroundColor
public void setBackgroundColor(double r,
double g,
double b,
double a)
- Set the background color
- Parameters:
r
- g
- b
- a
-
getWidth
public double getWidth()
- Returns:
- the width of the room
getHeight
public double getHeight()
- Returns:
- the height of the room
getDepth
public double getDepth()
- Returns:
- the depth of the room