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:35
Counts the amount of frames each second and displays them in a NumberText surface.
Definition: FpsCounter.h:37
~FpsCounter()
Cleans up all the FPS counter resources.
Definition: FpsCounter.cpp:53
void draw()
Draws the FPS counter.
Definition: FpsCounter.cpp:115
FpsCounter(int width, int height, int x, int y)
Creates a new FPS counter linked to a game.
Definition: FpsCounter.cpp:38
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets the FPS counter's palette.
Definition: FpsCounter.cpp:65
void update()
Updates the amount of Frames per Second.
Definition: FpsCounter.cpp:104
void handle(Action *action)
Handles keyboard events.
Definition: FpsCounter.cpp:84
void think()
Advances frame counter.
Definition: FpsCounter.cpp:96
void setColor(Uint8 color)
Sets the FpsCounter's color.
Definition: FpsCounter.cpp:75
Number digits displayed on the screen.
Definition: NumberText.h:32
Element that is blit (rendered) onto the screen.
Definition: Surface.h:40
Timer used to run code in fixed intervals.
Definition: Timer.h:38
COPYING:
Definition: BaseInfoState.cpp:41