menu.h

来自「小游戏 linux very happy」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef MENU_H#define MENU_Hextern 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?