|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.threed.jpct.util.SkyBox
Simple skybox class to ease the creation of a standard skybox.
Constructor Summary | |
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. |
Method Summary | |
void |
compile()
Can be used to compile the skybox. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |