23 lines
491 B
C
23 lines
491 B
C
#ifndef WIN_H
|
|
#define WIN_H
|
|
#include "game.h"
|
|
#include <SDL_ttf.h>
|
|
|
|
typedef struct Font {
|
|
TTF_Font * fontKind;
|
|
SDL_Texture* texture;
|
|
int w, h;
|
|
} Font;
|
|
|
|
typedef struct Button {
|
|
int x,y,w,h;
|
|
} Button;
|
|
typedef struct Over {
|
|
int nameH,buttonH,w;
|
|
Button botton;
|
|
} Over;
|
|
|
|
void initOver(Game * game, Over * over);
|
|
void drawOver(int fontSizeName, int fontSizeButton,Font * font, const char * nameText, Color buttonColor, SDL_Renderer * renderer , Over* over);
|
|
#endif //WIN_H
|