diff options
author | 3gg <3gg@shellblade.net> | 2024-08-31 18:58:39 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-08-31 18:58:39 -0700 |
commit | daf6262c029892212f6b9b4014887c2c37e9ef75 (patch) | |
tree | 40b24f4f23cc48e55c3511c28c7bef29834d61b3 /gfx-iso/include/isogfx/app.h | |
parent | 0a78a9d9c1ac2090da56f395d6f2394a8a210010 (diff) |
Handle resizing.
Diffstat (limited to 'gfx-iso/include/isogfx/app.h')
-rw-r--r-- | gfx-iso/include/isogfx/app.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gfx-iso/include/isogfx/app.h b/gfx-iso/include/isogfx/app.h deleted file mode 100644 index fe60d04..0000000 --- a/gfx-iso/include/isogfx/app.h +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <gfx/app.h> | ||
4 | |||
5 | #include <stdbool.h> | ||
6 | |||
7 | // TODO: Define an isogfx-gl backend library. Remove all these callbacks. | ||
8 | |||
9 | typedef struct IsoGfx IsoGfx; | ||
10 | typedef struct IsoGfxApp IsoGfxApp; | ||
11 | |||
12 | typedef struct IsoGfxAppState IsoGfxAppState; | ||
13 | |||
14 | typedef struct IsoGfxApp { | ||
15 | int pixel_scale; // Use 0 or 1 for 1:1 scaling. | ||
16 | IsoGfxAppState* state; | ||
17 | |||
18 | bool (*init)(IsoGfxAppState*, IsoGfx*, int argc, const char** argv); | ||
19 | void (*shutdown)(IsoGfxAppState*, IsoGfx*); | ||
20 | void (*update)(IsoGfxAppState*, IsoGfx*, double t, double dt); | ||
21 | void (*render)(IsoGfxAppState*, IsoGfx*); | ||
22 | } IsoGfxApp; | ||
23 | |||
24 | void iso_run(int argc, const char** argv, IsoGfxApp*); | ||