|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.jme.scene.Skybox
A Box made of textured quads that simulate having a sky, horizon and so forth around your scene. Either attach to a camera node or update on each frame to set this skybox at the camera's position.
| Field Summary | |
static int |
DOWN
The -Y side of the skybox. |
static int |
EAST
The -X side of the skybox. |
static int |
NORTH
The +Z side of the skybox. |
static int |
SOUTH
The -Z side of the skybox. |
static int |
UP
The +Y side of the skybox. |
static int |
WEST
The +X side of the skybox. |
| Fields inherited from class com.jme.scene.Node |
children |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
Skybox(java.lang.String name,
float xExtent,
float yExtent,
float zExtent)
Creates a new skybox. |
|
| Method Summary | |
Quad |
getSide(int direction)
Retrieve the quad indicated by the given side. |
void |
preloadTextures()
Force all of the textures to load. |
void |
setTexture(int direction,
Texture texture)
Set the texture to be displayed on the given side of the skybox. |
void |
setTexture(int direction,
Texture texture,
int textureUnit)
Set the texture to be displayed on the given side of the skybox. |
| Methods inherited from class com.jme.scene.Node |
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound, updateWorldData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORTH
public static final int SOUTH
public static final int EAST
public static final int WEST
public static final int UP
public static final int DOWN
| Constructor Detail |
public Skybox(java.lang.String name,
float xExtent,
float yExtent,
float zExtent)
name - The name of the skybox.xExtent - The x size of the skybox in both directions from the center.yExtent - The y size of the skybox in both directions from the center.zExtent - The z size of the skybox in both directions from the center.| Method Detail |
public void setTexture(int direction,
Texture texture)
direction - One of Skybox.NORTH, Skybox.SOUTH, and so on...texture - The texture for that side to assume.
public void setTexture(int direction,
Texture texture,
int textureUnit)
direction - One of Skybox.NORTH, Skybox.SOUTH, and so on...texture - The texture for that side to assume.textureUnit - The texture unite of the given side's TextureState the texture
will assume.public Quad getSide(int direction)
direction - One of Skybox.NORTH, Skybox.SOUTH, and so on...
public void preloadTextures()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||