org.xith3d.loop
Interface RenderLoopListener


public interface RenderLoopListener

This interface is used by the RenderLoop to notify other objects that the thread has started or stopped.


Method Summary
 void onRenderLoopPaused(RenderLoop rl, long gameTime, UpdatingThread.TimingMode timingMode, int pauseMode)
          This event is fired by the RenderLoop when the pauseMode has been increased.
 void onRenderLoopResumed(RenderLoop rl, long gameTime, UpdatingThread.TimingMode timingMode, int pauseMode)
          This event is fired by the RenderLoop when the pauseMode has been released.
 void onRenderLoopStarted(RenderLoop rl)
          this method is executed by the RenderLoop when the thread has been started.
 void onRenderLoopStopped(RenderLoop rl, long gameTime, UpdatingThread.TimingMode timingMode, float averageFPS)
          this method is executed by the RenderLoop when the thread has been stopped.
 

Method Detail

onRenderLoopStarted

void onRenderLoopStarted(RenderLoop rl)
this method is executed by the RenderLoop when the thread has been started.

Parameters:
rl - the effected RenderLoop

onRenderLoopStopped

void onRenderLoopStopped(RenderLoop rl,
                         long gameTime,
                         UpdatingThread.TimingMode timingMode,
                         float averageFPS)
this method is executed by the RenderLoop when the thread has been stopped.

Parameters:
rl - the effected RenderLoop
gameTime - the current gameTime
averageFPS - the average FPS over the time the loop was running

onRenderLoopPaused

void onRenderLoopPaused(RenderLoop rl,
                        long gameTime,
                        UpdatingThread.TimingMode timingMode,
                        int pauseMode)
This event is fired by the RenderLoop when the pauseMode has been increased.

Parameters:
rl - the effected RenderLoop
gameTime - the current gameTime
pauseMode - the current pause-Mode

onRenderLoopResumed

void onRenderLoopResumed(RenderLoop rl,
                         long gameTime,
                         UpdatingThread.TimingMode timingMode,
                         int pauseMode)
This event is fired by the RenderLoop when the pauseMode has been released.

Parameters:
rl - the effected RenderLoop
gameTime - the current gameTime
pauseMode - the current pause-Mode