com.jme3.app
Class ResetStatsState

java.lang.Object
  extended by com.jme3.app.state.AbstractAppState
      extended by com.jme3.app.ResetStatsState
All Implemented Interfaces:
AppState

public class ResetStatsState
extends AbstractAppState

Resets (clearFrame()) the render's stats object every frame during AppState.render(). This state is registered once with Application to ensure that the stats are cleared once a frame. Using this makes sure that any Appliction based application that properly runs its state manager will have stats reset no matter how many views it has or if it even has views.


Field Summary
 
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
 
Constructor Summary
ResetStatsState()
           
 
Method Summary
 void render(RenderManager rm)
          Render the state.
 
Methods inherited from class com.jme3.app.state.AbstractAppState
cleanup, initialize, isEnabled, isInitialized, postRender, setEnabled, stateAttached, stateDetached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetStatsState

public ResetStatsState()
Method Detail

render

public void render(RenderManager rm)
Description copied from interface: AppState
Render the state.

Specified by:
render in interface AppState
Overrides:
render in class AbstractAppState
Parameters:
rm - RenderManager