Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

sjgui::extra::CFPSLabel Class Reference

Label, which show fps value. More...

#include <extra.h>

Inheritance diagram for sjgui::extra::CFPSLabel:

sjgui::modern::CLabelTmpl< Tbase > sjgui::CLabelCtrlTmpl< Tbase > sjgui::CFont sjgui::extra::CFPSLabelDropIn 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:
sjgui logo
Quick Links:

 News
 Description
 Screen Shots
 Projects
 Downloads
 Source Code
 Help/FAQ
 Want to help?
 Credits
 Disclaimer


Documentation:

 Documentation
 Reference
 Lessons


Useful links:

sjcomp logo
sjcomp

opengl logo

nehe logo

SourceForge.net Logo

Last modified:


Started by Alexander Shyrokov. Generated at Wed Apr 28 12:31:07 2004 for the sjgui by doxygen 1.3.1. SourceForge.net Logo