Package com.jme3.app

Class 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 Application-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.
  • Constructor Details

    • ResetStatsState

      public ResetStatsState()
  • Method Details

    • render

      public void render(RenderManager rm)
      Description copied from interface: AppState
      Render the state. This method will be called every render pass if the AppState is both attached and enabled.
      Specified by:
      render in interface AppState
      Overrides:
      render in class AbstractAppState
      Parameters:
      rm - RenderManager