-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmenu.h
More file actions
71 lines (39 loc) · 931 Bytes
/
Copy pathmenu.h
File metadata and controls
71 lines (39 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef MENU_H_INCLUDED
#define MENU_H_INCLUDED
#include<SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_mixer.h>
#include <SDL/SDL_ttf.h>
typedef struct
{
SDL_Surface *background_principale;
SDL_Surface *jouer_btn[2];
SDL_Rect posbutton_jouer;
SDL_Surface *option_btn[2];
SDL_Rect posbutton_option;
SDL_Surface *meilleur_btn[2];
SDL_Rect posbutton_meilleur;
SDL_Surface *histoire_btn[2];
SDL_Rect posbutton_histoire;
SDL_Surface *quit_btn[2];
SDL_Rect posbutton_quit;
int btn_select;
Mix_Music *music;
Mix_Chunk *sonclick;
SDL_Surface *title;
TTF_Font *font;
SDL_Color fontColor;
SDL_Rect postext;
SDL_Surface *logo;
SDL_Rect logo_pos;
SDL_Rect gifPosition;
SDL_Surface *images[100];
int count;
int frame;
int FRAME_DELAY;
}Menu;
void init_menu(Menu *menu);
void afficher_menu(Menu *m,SDL_Surface *Fenetre);
int colision_avec_souris(SDL_Rect pos_btn);
void misajour_menu(Menu *m);
#endif