29 lines
695 B
C
29 lines
695 B
C
#ifndef STATE_OPTIONS_H
|
|
#define STATE_OPTIONS_H
|
|
#include <SDL2/SDL.h>
|
|
#include "Ui.h"
|
|
#include "globals.h"
|
|
|
|
#define OPT_TEXT_WIDTH 0
|
|
#define OPT_TEXT_HEIGHT 1
|
|
#define OPT_TEXT_VSYNC 2
|
|
#define OPT_TEXT_COUNT 3
|
|
extern char *opt_text_name[];
|
|
struct Textt *opt_text[OPT_TEXT_COUNT];
|
|
struct TextInput *opt_input[OPT_TEXT_COUNT];
|
|
struct TextInput *opt_input_a;
|
|
|
|
#define OPT_BUTTON_CANCEL 0
|
|
#define OPT_BUTTON_APPLY 1
|
|
#define OPT_BUTTON_COUNT 2
|
|
extern char *opt_button_name[];
|
|
struct Button *opt_button[OPT_BUTTON_COUNT];
|
|
struct Button *opt_button_a;
|
|
|
|
int openOptionsState();
|
|
int closeOptionsState();
|
|
int processOptionsState();
|
|
int handleOptionsState(SDL_Event event);
|
|
int renderOptionsState();
|
|
#endif
|