class MASKING_DLL_DECLSPEC FPS

A simple widget that displays the current redraw frame rate.

Inheritance:

FPS - Label - Widget - Rect


Public Methods

[more] FPS()
default constructor
[more] ~FPS()
destructor
[more]int Get()
Returns the current FPS (stands for 'Frames Per Second').

Protected Methods

[more]void MsgTick()
Records a MSG_TICK message and makes sure the widget is redrawn in every frame
[more]void MsgInitSkin()
Initializes the text and sets the text background colour to the default skin background colour
[more]void Draw(Bitmap &canvas)
Renders the frame rate as text


Documentation

A simple widget that displays the current redraw frame rate. The frame rate is measured by the globalFpsCounter object.

ovoid MsgTick()
Records a MSG_TICK message and makes sure the widget is redrawn in every frame

ovoid MsgInitSkin()
Initializes the text and sets the text background colour to the default skin background colour

ovoid Draw(Bitmap &canvas)
Renders the frame rate as text

o FPS()
default constructor

o ~FPS()
destructor

oint Get()
Returns the current FPS (stands for 'Frames Per Second'). Actually the frame rate is a running average over the last second.


This class has no child classes.
See Also:
CFPS

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++