Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
sjgui::extra::CFPSLabel Class ReferenceLabel, which show fps value.
More...
#include <extra.h>
Inheritance diagram for sjgui::extra::CFPSLabel:
List of all members.
|
Public Member Functions |
void | SetText (std::string str) |
| Set text of the label.
|
void | OnDraw () |
| Keeps track of frames.
|
Detailed Description
Label, which show fps value.
Fps value is being averaged, so it should not change rapidly at each frame. Update happens each second. - Author:
- Alexander Shyrokov
- Version:
- Revision
- 1.1.1.1
Member Function Documentation
void sjgui::extra::CFPSLabel::SetText |
( |
std::string |
str |
) |
[inline] |
|
|
Set text of the label.
I need to override set text feature. So user can supply format with d placeholder, like in standard printf/scanf format. Default is "FPS:%d" |
The documentation for this class was generated from the following file:
|
|