更名FINDBOOM为MineSweepe
正式初步完成了MineSweepe
This commit is contained in:
22
include/over.h
Normal file
22
include/over.h
Normal file
@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user