public abstract class JMEAppRoot
extends com.jme3.app.Application
SimpleApplication extends the Application
class to provide default functionality like a first-person camera, and an
accessible root node that is updated and rendered regularly. Additionally,
SimpleApplication will display a statistics view using the
StatsView class. It will display the current
frames-per-second value on-screen in addition to the statistics. Several keys
have special functionality in SimpleApplication:| Esc | - Close the application |
| C | - Display the camera position and rotation in the console. |
| M | - Display memory usage in the console. |
| Constructor and Description |
|---|
JMEAppRoot()
Instantiates a new JME app root.
|
| Modifier and Type | Method and Description |
|---|---|
com.jme3.scene.Node |
getGuiNode()
Gets the gui node.
|
com.jme3.scene.Node |
getRootNode()
Gets the root node.
|
void |
initialize() |
void |
loadFPSText()
Load fps text.
|
void |
loadStatsView()
Load stats view.
|
abstract void |
simpleInitApp()
Simple init app.
|
void |
simpleRender(com.jme3.renderer.RenderManager rm)
Simple render.
|
void |
simpleUpdate(float tpf)
Simple update.
|
void |
start() |
void |
update() |
createCanvas, destroy, enqueue, gainFocus, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, setAssetManager, setPauseOnLostFocus, setSettings, start, startCanvas, startCanvas, stop, stoppublic com.jme3.scene.Node getGuiNode()
public com.jme3.scene.Node getRootNode()
public void initialize()
initialize in interface com.jme3.system.SystemListenerinitialize in class com.jme3.app.Applicationpublic void loadFPSText()
public void loadStatsView()
public abstract void simpleInitApp()
public void simpleRender(com.jme3.renderer.RenderManager rm)
rm - the rmpublic void simpleUpdate(float tpf)
tpf - the tpfpublic void start()
start in class com.jme3.app.Applicationpublic void update()
update in interface com.jme3.system.SystemListenerupdate in class com.jme3.app.Application