blob: f405a6b5af41e5ce867cb5da876971ff3f51cd78 (
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
|
#ifdef __EMSCRIPTEN__
# define SOKOL_GLES3
# define NANOVG_GLES3 1
#else
# define SOKOL_GLCORE33
# define NANOVG_GL3 1
#endif
// sokol
//
#define SOKOL_APP_IMPL
#include "../kit/time.h" // for timespec_get
#include "../thirdparty/sokol_app.h"
// miniaudio
//
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-result"
#endif
#define MINIAUDIO_IMPLEMENTATION
#include "../thirdparty/miniaudio.h"
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
// nanovg
//
#include "../thirdparty/nanovg.c"
#include "../thirdparty/nanovg_gl.c"
#include "../thirdparty/android.c"
|