public class LightsDebugState extends BaseAppState
Constructor and Description |
---|
LightsDebugState() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(Application app)
Called after the app state is detached or during
application shutdown if the state is still attached.
|
float |
getProbeScale()
returns the scale of the probe's debug sphere
|
protected void |
initialize(Application app)
Called during initialization once the app state is
attached and before onEnable() is called.
|
protected void |
onDisable()
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.
|
void |
render(RenderManager rm)
Render the state.
|
void |
setProbeScale(float probeScale)
sets the scale of the probe's debug sphere
|
void |
setScene(Spatial scene)
Set the scenes for which to render light gizmos.
|
void |
update(float tpf)
Called to update the
AppState . |
void |
updateLights(Spatial scene) |
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, setEnabled, setId, stateAttached, stateDetached
protected void initialize(Application app)
BaseAppState
initialize
in class BaseAppState
app
- the applicationpublic void update(float tpf)
AppState
AppState
. This method will be called
every render pass if the AppState
is both attached and enabled.update
in interface AppState
update
in class BaseAppState
tpf
- Time since the last call to update(), in seconds.public void updateLights(Spatial scene)
public void setScene(Spatial scene)
scene
- public void render(RenderManager rm)
AppState
AppState
is both attached and enabled.render
in interface AppState
render
in class BaseAppState
rm
- RenderManagerpublic float getProbeScale()
public void setProbeScale(float probeScale)
probeScale
- protected void cleanup(Application app)
BaseAppState
cleanup
in class BaseAppState
app
- the applicationprotected void onEnable()
BaseAppState
onEnable
in class BaseAppState
protected void onDisable()
BaseAppState
onDisable
in class BaseAppState