22 lines
514 B
C
22 lines
514 B
C
#ifndef STATE_GAME_MENU_H
|
|
#define STATE_GAME_MENU_H
|
|
#include <SDL2/SDL.h>
|
|
#include "PTime.h"
|
|
|
|
struct PTime last_accumulator;
|
|
|
|
#define GMENU_BUTTON_RESTART 0
|
|
#define GMENU_BUTTON_QUIT 1
|
|
#define GMENU_BUTTON_CANCEL 2
|
|
#define GMENU_BUTTON_COUNT 3
|
|
extern char *gmenu_button_name[];
|
|
struct Button *gmenu_button[GMENU_BUTTON_COUNT];
|
|
struct Button *gmenu_button_a;
|
|
|
|
int openGameMenuState();
|
|
int closeGameMenuState();
|
|
int processGameMenuState();
|
|
int handleGameMenuState(SDL_Event event);
|
|
int renderGameMenuState();
|
|
#endif
|