Package org.ngengine
Class DevMode
java.lang.Object
com.jme3.app.state.BaseAppState
org.ngengine.DevMode
- All Implemented Interfaces:
AppState
,ActionListener
,InputListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup
(Application app) Called after the app state is detached or during application shutdown if the state is still attached.protected void
initialize
(Application app) Called during initialization once the app state is attached and before onEnable() is called.void
Called when an input to which this listener is registered to is invoked.protected void
Called when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.protected void
onEnable()
Called when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.static void
registerForReload
(Material material) static void
registerForReload
(Spatial spatial) static void
registerReloadCallback
(Object ref, Runnable callback) static void
reload()
static Material
reloadMaterial
(AssetManager assetManager, RenderManager renderManager, Material mat) void
update
(float tpf) Called to update theAppState
.Methods inherited from class com.jme3.app.state.BaseAppState
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, render, setEnabled, setId, stateAttached, stateDetached
-
Constructor Details
-
DevMode
public DevMode()
-
-
Method Details
-
registerReloadCallback
-
registerForReload
-
registerForReload
-
reload
public static void reload() -
initialize
Description copied from class:BaseAppState
Called during initialization once the app state is attached and before onEnable() is called.- Specified by:
initialize
in classBaseAppState
- Parameters:
app
- the application
-
cleanup
Description copied from class:BaseAppState
Called after the app state is detached or during application shutdown if the state is still attached. onDisable() is called before this cleanup() method if the state is enabled at the time of cleanup.- Specified by:
cleanup
in classBaseAppState
- Parameters:
app
- the application
-
update
public void update(float tpf) Description copied from interface:AppState
Called to update theAppState
. This method will be called every render pass if theAppState
is both attached and enabled.- Specified by:
update
in interfaceAppState
- Overrides:
update
in classBaseAppState
- Parameters:
tpf
- Time since the last call to update(), in seconds.
-
onEnable
protected void onEnable()Description copied from class:BaseAppState
Called when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.- Specified by:
onEnable
in classBaseAppState
-
onDisable
protected void onDisable()Description copied from class:BaseAppState
Called when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.- Specified by:
onDisable
in classBaseAppState
-
onAction
Description copied from interface:ActionListener
Called when an input to which this listener is registered to is invoked.- Specified by:
onAction
in interfaceActionListener
- Parameters:
name
- The name of the mapping that was invokedisPressed
- True if the action is "pressed", false otherwisetpf
- The time per frame value.
-
reloadMaterial
public static Material reloadMaterial(AssetManager assetManager, RenderManager renderManager, Material mat)
-