techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/app.h
blob: 1f0ff238039995c4342590bbbe4c6221c0d06e52 (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
#ifndef APP_H
#define APP_H

#include "common.h"

typedef enum {
	APP_MODE_EDIT,
	APP_MODE_PLAY,
} AppMode;

typedef enum {
	APP_FLAG_EDIT,
	APP_FLAG_DEBUG,
} AppFlag;

typedef struct {
	int w, h;
	f32 frame_time_ms;
	AppMode mode;
	AppFlag flags;
	bool run;
} App;

extern App app;

void	app_notify(cstr title, cstr msg);

#endif