20 lines
335 B
C
20 lines
335 B
C
|
#ifndef SCORE_H
|
||
|
#define SCORE_H
|
||
|
|
||
|
#include <SDL.h>
|
||
|
#include <SDL_ttf.h>
|
||
|
|
||
|
typedef struct Score {
|
||
|
const int POSX;
|
||
|
const int POSY;
|
||
|
int score;
|
||
|
TTF_Font *font;
|
||
|
SDL_Color textColor;
|
||
|
} Score;
|
||
|
|
||
|
Score* Score_init(int posX, int posY);
|
||
|
void Score_free(Score* score);
|
||
|
int Score_render(const Score* score, SDL_Renderer *renderer);
|
||
|
|
||
|
#endif
|