|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.E3DEngine
| Field Summary | |
static boolean |
IN_JAR
This is always true except for debugging purposes during development. |
| Constructor Summary | |
E3DEngine()
|
|
| Method Summary | |
void |
addExternalRenderable(E3DRenderable renderableItem,
int timeoutFrames)
This adds an E3DRenderable item to the ExternalRenderable list. |
void |
addViewport(E3DViewport viewport)
Add a new viewport to the list of viewports |
void |
addWorld(E3DWorld world)
Add a world to the engines world list |
void |
changeScreenResolution(int width,
int height,
int bitsPerPixel,
boolean fullscreen,
java.lang.String windowTitle)
change the screen resolution |
void |
checkInput()
|
E3DCollisionDetect |
getCollisionDetect()
|
E3DFPSTimer |
getFpsTimer()
Returns the timer the engine uses to get its FPS. |
E3DInputHandler |
getInputHandler()
|
int |
getTextureIDByName(java.lang.String textureName)
Get the glTextureID of the texture if its in the texture map |
java.util.HashMap |
getTextureMap()
Builds a textureMap out of all the texture sets in all the worlds If two worlds have the same entry name, the textureID used for the last checked world is used. |
E3DViewport |
getViewport(java.lang.String viewportID)
|
int |
getWindowHeight()
|
java.lang.String |
getWindowTitle()
|
int |
getWindowWidth()
|
java.lang.String |
getWorkingDirectory()
Gets the current working directory WITHOUT trailing slashes |
E3DWorld |
getWorld(java.lang.String worldID)
Get a world from the map of worlds by its ID |
java.util.HashMap |
getWorldMap()
|
void |
initEngine(int width,
int height,
int bitsPerPixel,
boolean fullscreen,
java.lang.String windowTitle)
Create window and initialize OpenGL |
boolean |
isRenderNormals()
|
boolean |
isRunning()
|
void |
removeAllViewports()
Remove all viewports from the engine |
void |
removeAllWorlds()
Remove all the worlds in the engine. |
void |
removeViewport(java.lang.String viewportID)
Remove a viewport with viewportID from the engine |
void |
removeWorld(java.lang.String worldID)
Remove a world from the engine's world list |
void |
renderAtPosition(E3DVector3F atPosition)
|
void |
setDisplayingFPS(boolean displayingFPS)
Set whether the engine should display the FPS time or not. |
void |
setInputHandler(E3DInputHandler inputHandler)
|
void |
setRenderNormals(boolean renderNormals)
|
void |
setRunning(boolean running)
|
void |
setWindowTitle(java.lang.String windowTitle)
|
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
render |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean IN_JAR
| Constructor Detail |
public E3DEngine()
| Method Detail |
public java.util.HashMap getTextureMap()
public int getTextureIDByName(java.lang.String textureName)
textureName -
public java.lang.String getWorkingDirectory()
public void initEngine(int width,
int height,
int bitsPerPixel,
boolean fullscreen,
java.lang.String windowTitle)
throws java.lang.Exception
java.lang.Exception
public void changeScreenResolution(int width,
int height,
int bitsPerPixel,
boolean fullscreen,
java.lang.String windowTitle)
public void addWorld(E3DWorld world)
public void removeWorld(java.lang.String worldID)
public void removeAllWorlds()
public E3DWorld getWorld(java.lang.String worldID)
worldID -
public java.util.HashMap getWorldMap()
public void renderAtPosition(E3DVector3F atPosition)
renderAtPosition in class E3DRenderable
public void checkInput()
throws E3DMissingInputHandlerException
E3DMissingInputHandlerExceptionpublic void setInputHandler(E3DInputHandler inputHandler)
inputHandler - The inputHandler to set.public E3DInputHandler getInputHandler()
public boolean isRunning()
public void setRunning(boolean running)
running - Set the engines running statepublic E3DCollisionDetect getCollisionDetect()
public boolean isRenderNormals()
public void setRenderNormals(boolean renderNormals)
public void addExternalRenderable(E3DRenderable renderableItem,
int timeoutFrames)
renderableItem - An E3DRenderable item that you want to render outside of the optimized rendering loop.timeoutFrames - How many frames to render this renderable forpublic void setDisplayingFPS(boolean displayingFPS)
displayingFPS - public java.lang.String getWindowTitle()
public void setWindowTitle(java.lang.String windowTitle)
windowTitle - The windowTitle to set.public E3DViewport getViewport(java.lang.String viewportID)
public void addViewport(E3DViewport viewport)
viewport - public void removeViewport(java.lang.String viewportID)
viewportID - public void removeAllViewports()
public int getWindowWidth()
public int getWindowHeight()
public E3DFPSTimer getFpsTimer()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||