#include <FrameCounter.h>
Inherits Region.
Inheritance diagram for FrameCounter:


Public Methods | |
| FrameCounter () | |
| Default constructor. More... | |
| void | refresh () |
| Repaints the FrameCounter. More... | |
Protected Attributes | |
| int | time |
| Time of last update. | |
| int | frame |
| Frame counter. | |
| float | fps |
| Cashed value of frames/sec counter. | |
The Framecounter is a passive widget that calculates and displays its refresh rate. Can be used for OpenGL animations.
|
|
Default constructor. Constructs a new FrameCounter.
|
|
|
Repaints the FrameCounter. Every 20 frames the frames/sec counter is updated.
Reimplemented from Region. |