jjdh API

jjdh.opengl.core.counter
Interface FrameCounter

All Known Implementing Classes:
AbstractFrameCounter, FixedFrameCounter, FixedTimeCounter

public interface FrameCounter


Method Summary
 void addOneFrame()
          Notifies this counter that another frame was drawn.
 String detailedToString()
           
 int getFrames()
           
 float getFramesPerSecond()
           
 String toString()
           
 

Method Detail

addOneFrame

void addOneFrame()
Notifies this counter that another frame was drawn.


getFrames

int getFrames()
Returns:
the number of frames on which the calculation of the current frame rate is based

getFramesPerSecond

float getFramesPerSecond()
Returns:
the current frame rate

toString

String toString()
Overrides:
toString in class Object
Returns:
a short textual description of the current frame rate

detailedToString

String detailedToString()
Returns:
a detailed textual description of the current frame rate

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.