|
|||||||||||
| 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 If the primarySoundViewport hasn't been set, it will automatically be set to this viewport. |
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()
|
E3DCollisionHandler |
getCollisionHandler()
|
E3DViewport |
getCurrentViewport()
Returns the viewport the engine is currently rendering to. |
E3DFeatureChecker |
getFeatureChecker()
|
E3DFPSTimer |
getFpsTimer()
Returns the timer the engine uses to get its FPS. |
E3DGeometryRenderer |
getGeometryRenderer()
|
E3DInputHandler |
getInputHandler()
|
E3DEngineLogger |
getLogger()
|
E3DViewport |
getPrimarySoundViewport()
|
E3DSoundHandler |
getSoundHandler()
|
E3DTexture |
getTexture(java.lang.String textureName)
Return the E3DTexture that is loaded in a textureSet and named textureName |
int |
getTextureIDByName(java.lang.String textureName)
Get the glTextureID of the texture if its in the texture map |
java.util.HashMap |
getTextureSet()
Builds a textureSet out of all the texture sets in all the worlds If two worlds have the same entry name, the E3DTexture 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 |
isBackfaceCullingEnabled()
|
boolean |
isDebugNormalsRendered()
|
boolean |
isRunning()
|
void |
removeAllViewports()
Remove all viewports from the engine |
void |
removeAllWorlds()
Remove all the worlds in the engine. |
void |
removeExternalRenderable(E3DRenderable renderableItem)
|
void |
removeViewport(java.lang.String viewportID)
Remove a viewport with viewportID from the engine If removing a viewport that is set to the primarySoundViewport, the primarySoundViewport will automatically be set to the first viewport in the viewportMap. |
void |
removeWorld(java.lang.String worldID)
Remove a world from the engine's world list |
void |
render()
|
void |
setBackfaceCullingEnabled(boolean backfaceCullingEnabled)
|
void |
setDebugNormalsRendered(boolean renderNormals)
|
void |
setDisplayingFPS(boolean displayingFPS)
Set whether the engine should display the FPS time or not. |
void |
setInputHandler(E3DInputHandler inputHandler)
|
void |
setPrimarySoundViewport(E3DViewport viewport)
A primary viewport for sound must be set. |
void |
setRunning(boolean running)
|
void |
setWindowTitle(java.lang.String windowTitle)
|
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getBlendMode, getKey, getRenderMode, initCorrectGeometryRenderer, isKeyChanged, setBlendMode, setKeyChanged, setRenderMode |
| 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 getTextureSet()
public int getTextureIDByName(java.lang.String textureName)
textureName -
public E3DTexture getTexture(java.lang.String textureName)
textureName - The name of the texture in the textureMap
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 render()
render 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 E3DCollisionHandler getCollisionHandler()
public boolean isDebugNormalsRendered()
public void setDebugNormalsRendered(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 removeExternalRenderable(E3DRenderable renderableItem)
public 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 setPrimarySoundViewport(E3DViewport viewport)
viewport - public void removeViewport(java.lang.String viewportID)
viewportID - public void removeAllViewports()
public int getWindowWidth()
public int getWindowHeight()
public E3DFPSTimer getFpsTimer()
public E3DViewport getCurrentViewport()
public boolean isBackfaceCullingEnabled()
public void setBackfaceCullingEnabled(boolean backfaceCullingEnabled)
public E3DSoundHandler getSoundHandler()
public E3DViewport getPrimarySoundViewport()
public E3DGeometryRenderer getGeometryRenderer()
public E3DEngineLogger getLogger()
public E3DFeatureChecker getFeatureChecker()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||