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