OpenGL::FpsCounter Class Reference

#include <FpsCounter.h>

List of all members.

Public Member Functions

 FpsCounter (unsigned int numTimeSteps=50)
void update (float timestep)
void render (unsigned int x, unsigned int y) const


Detailed Description

The FpsCounter class monitors the frame rate and renders it to the framebuffer.


Constructor & Destructor Documentation

OpenGL::FpsCounter::FpsCounter unsigned int  numTimeSteps = 50  ) 
 

Constructor.

Parameters:
numTimeSteps the number of timesteps saved in order to compute the FPS.


Member Function Documentation

void OpenGL::FpsCounter::render unsigned int  x,
unsigned int  y
const
 

Renders the FPS value to the specified framebuffer position.

Parameters:
x the x-coordinate of the framebuffer position.
y the y-coordinate of the framebuffer position.

void OpenGL::FpsCounter::update float  timestep  ) 
 

Updates the FPS value based on the last timestep.

Parameters:
timestep the timestep since the last frame.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:52 2006 for GPU Thesis by  doxygen 1.4.6-NO