|
le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
Abstract OS native time measurement & process yielding. More...
#include <timing.h>
Public Member Functions | |
| LeTiming () | |
| ~LeTiming () | |
| void | setup (int targetFPS) |
| Configure the frame timing system. More... | |
| void | firstFrame () |
| Mark the time of the first frame. More... | |
| void | lastFrame () |
| Mark the time of the last frame. More... | |
| bool | isNextFrame () |
| Is it the time to display the next frame? More... | |
| void | waitNextFrame () |
| Wait until it is time to display the next frame. More... | |
Public Attributes | |
| float | fps |
| bool | enableDisplay |
Abstract OS native time measurement & process yielding.
| LeTiming::LeTiming | ( | ) |
| LeTiming::~LeTiming | ( | ) |
| void LeTiming::firstFrame | ( | ) |
Mark the time of the first frame.
| bool LeTiming::isNextFrame | ( | ) |
Is it the time to display the next frame?
| void LeTiming::lastFrame | ( | ) |
Mark the time of the last frame.
| void LeTiming::setup | ( | int | targetFPS | ) |
Configure the frame timing system.
| [in] | targetFPS | desired application FPS |
| void LeTiming::waitNextFrame | ( | ) |
Wait until it is time to display the next frame.
| bool LeTiming::enableDisplay |
periodically displays FPS in console
| float LeTiming::fps |
current game FPS
1.8.10