Files
findboom/include/over.h
wlx a3b2d6c7c8 更名FINDBOOM为MineSweepe
正式初步完成了MineSweepe
2025-07-19 15:37:01 +08:00

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