|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.game.AbstractBaseGame
de.rico.editor.WorldEditor
public class WorldEditor
Main class for the world editor.
Field Summary | |
---|---|
static CamPlayer |
camFlightPlayer
|
static Recorder |
camFlightRecorder
|
static Path |
path
|
static Room |
room
|
Constructor Summary | |
---|---|
WorldEditor(java.lang.String title)
Creates a new world editor with the specified window title. |
Method Summary | |
---|---|
void |
draw(javax.media.opengl.GL gl)
This method is used to draw the scene and its content. |
static java.lang.String |
getBaseFolder()
Returns the base folder of the room's data. |
void |
initResources(javax.media.opengl.GLDrawable gld,
javax.media.opengl.GL gl,
int width,
int height)
This method is used to initialize all the objects and resources that are neccessary at startup of the game. |
static void |
main(java.lang.String[] args)
|
static void |
markDirectLightForAdding(DirectLightData dl)
Marks a directinal light for being added to the scene during the next update() call. |
static void |
markEntityForAdding(AbstractEntityData entity)
Marks an entity for being added to the scene during the next update() call. |
static void |
markLoadScene(java.lang.String path)
Marks a scene file (specified by its path) to be loaded during the next update() call. |
static void |
markPosLightForAdding(PosLightData pl)
Marks a positinal light for being added to the scene during the next update() call. |
static void |
markSkyBoxForAdding(SkyBoxData sb)
Marks a sky box (SkyBoxData object) for being added. |
static void |
markSpotLightForAdding(SpotLightData sl)
Marks a spot light for being added to the scene during the next update() call. |
static void |
setBaseFolder(java.lang.String path)
Sets the base folder of the room's data. |
static void |
setMode(Mode mode)
Sets the mode of the editor. |
void |
update(long elapsedTime)
This method is used to update the scene and its content. |
Methods inherited from class de.rico.engine.game.AbstractBaseGame |
---|
display, displayChanged, enableBackFaceCulling, getMainFrame, getOGLCanvas, init, initCamera, isSetDisplayFPS, resetElapsedTime, reshape, setDisplayFPS, setDisplayMode, start, stop |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Room room
public static Path path
public static Recorder camFlightRecorder
public static CamPlayer camFlightPlayer
Constructor Detail |
---|
public WorldEditor(java.lang.String title)
title
- window titleMethod Detail |
---|
public static void setBaseFolder(java.lang.String path)
path
- path to base folder for the room datapublic static java.lang.String getBaseFolder()
public void draw(javax.media.opengl.GL gl)
GameIface
draw
in interface GameIface
draw
in class AbstractBaseGame
public void initResources(javax.media.opengl.GLDrawable gld, javax.media.opengl.GL gl, int width, int height)
GameIface
initResources
in interface GameIface
initResources
in class AbstractBaseGame
gld
- GLDrawable objectgl
- GL objectwidth
- window width (important viewport initialisation)height
- window height (important viewport initialisation)public void update(long elapsedTime)
GameIface
update
in interface GameIface
update
in class AbstractBaseGame
elapsedTime
- time between two framespublic static void main(java.lang.String[] args)
public static void markEntityForAdding(AbstractEntityData entity)
entity
- entity to be addedpublic static void markSkyBoxForAdding(SkyBoxData sb)
sb
- SkyBoxData objectpublic static void markDirectLightForAdding(DirectLightData dl)
dl
- directional light editor data modelpublic static void markPosLightForAdding(PosLightData pl)
pl
- positional light editor data modelpublic static void markSpotLightForAdding(SpotLightData sl)
sl
- spot light editor data modelpublic static void markLoadScene(java.lang.String path)
path
- path+ filename of an editor's scene filepublic static void setMode(Mode mode)
mode
- value from the Mode enumeration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |