public class SkyBox
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SkyBox(float size)
Creates a new skybox.
|
SkyBox(java.lang.String left,
java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String up,
java.lang.String down,
float size)
Creates a new skybox.
|
Modifier and Type | Method and Description |
---|---|
void |
compile()
Can be used to compile the skybox to avoid compilation at runtime.
|
void |
dispose()
Disposes the skybox.
|
World |
getWorld()
Gets the world that this skybox uses.
|
void |
render(World world,
FrameBuffer buffer)
Renders the skybox.
|
void |
setCenter(SimpleVector trans)
Sets the center of the skybox.
|
public SkyBox(float size)
size
- the size of the box. The box will extend in all directions by
half the size when viewed from the center.public SkyBox(java.lang.String left, java.lang.String front, java.lang.String right, java.lang.String back, java.lang.String up, java.lang.String down, float size)
left
- the name of the texture for the left sidefront
- the name of the texture for the front sideright
- the name of the texture for the right sideback
- the name of the texture for the back sideup
- the name of the texture for the up sidedown
- the name of the texture for the down sidesize
- the size of the box. The box will extend in all directions by
half the size when viewed from the center.public void dispose()
public World getWorld()
public void compile()
public void setCenter(SimpleVector trans)
trans
- public void render(World world, FrameBuffer buffer)
world
- the world that contains the scenebuffer
- the frame buffer