blob: a6359234eff7bb8547dcc98ef7bb3244dd5826f8 (
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
|
#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 {
RenderTexture scr_tex;
Rect scr_rec;
int w, h, rw, rh;
f32 frame_time_ms;
AppMode mode;
AppFlag flags;
bool run;
} App;
extern App app;
Ray app_screen_ray(Vec2 position, Camera camera);
Vec2 app_world_to_screen(Vec3 position, Camera camera);
void app_notify(cstr title, cstr msg);
#endif
|