blob: 0ca2bbe490d9ae680eed59f6473c2d7e125afb36 (
plain)
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
|
#ifndef MENU_H
#define MENU_H
extern float menu_fgColor[4];
extern float menu_hlColor1[4];
extern float menu_hlColor2[4];
typedef struct {
/* FontTex *font; */
float fgColor[4]; /* entries */
float hlColor1[4]; /* the highlighted one */
float hlColor2[4];
char szCaption[64];
} mDisplay;
typedef struct Menu {
int nEntries;
int iHighlight;
mDisplay display;
char szName[64];
char szCapFormat[64];
struct Menu** pEntries;
struct Menu* parent;
void* param; /* reserved to bind parameters at runtime */
} Menu;
typedef struct {
void* data;
void* next;
} node;
/* fixme: this variable is a hack */
extern int menutime;
#endif
|