20 #ifndef OPENXCOM_FPSCOUNTER_H
21 #define OPENXCOM_FPSCOUNTER_H
23 #include "../Engine/Surface.h"
44 FpsCounter(
int width,
int height,
int x,
int y);
48 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void setColor(Uint8 color)
Sets the FpsCounter's color.
Definition: FpsCounter.cpp:75
~FpsCounter()
Cleans up all the FPS counter resources.
Definition: FpsCounter.cpp:53
Timer used to run code in fixed intervals.
Definition: Timer.h:37
void draw()
Draws the FPS counter.
Definition: FpsCounter.cpp:115
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the FPS counter's palette.
Definition: FpsCounter.cpp:65
void handle(Action *action)
Handles keyboard events.
Definition: FpsCounter.cpp:84
void think()
Advances frame counter.
Definition: FpsCounter.cpp:96
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
void update()
Updates the amount of Frames per Second.
Definition: FpsCounter.cpp:104
Counts the amount of frames each second and displays them in a NumberText surface.
Definition: FpsCounter.h:36
Number digits displayed on the screen.
Definition: NumberText.h:31
FpsCounter(int width, int height, int x, int y)
Creates a new FPS counter linked to a game.
Definition: FpsCounter.cpp:38