SPACE::Core::cFrameLimiter Class Reference

This class manages the time. More...

#include <cFrameLimiter.hpp>

Inheritance diagram for SPACE::Core::cFrameLimiter:
SPACE::Core::TSingleton< cFrameLimiter >

List of all members.

Public Member Functions

 cFrameLimiter ()
 Init Variables.
bool LimitFrameRate (bool _Limit, unsigned int _Fps=0)
void Limit ()

Detailed Description

This class manages the time.

This class saves the time and update it. The time is saved in millisecons. The Time represent the time elapsed since the last frame rendered.

See also:
SPACE::Core::TSingleton

Member Function Documentation

void cFrameLimiter::Limit (  ) 

Limit the frame rate.

Warning:
Do not call this method by yourself.
Will change this to private and create a friend class.
bool cFrameLimiter::LimitFrameRate ( bool  _Limit,
unsigned int  _Fps = 0 
)

Set if the FrameRate should be limited

Parameters:
_Limit Set, if the Frameratelimiter should be activated. True -> Active ; False -> Deactivated;
_Fps Set the Target Frame Rate
Returns:
true => Everything was ok
false => an error occured

The documentation for this class was generated from the following files:
Generated on Wed Apr 7 17:20:25 2010 for SPACE Engine by  doxygen 1.6.3