diff options
| author | 3gg <3gg@shellblade.net> | 2026-04-05 17:16:38 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-04-05 17:16:38 -0700 |
| commit | 152602413ebde5e2563595baa2b9324158002bd8 (patch) | |
| tree | 30d6cfe1153cc7e0619affcfb51aecdd82fa7b21 /app/demo | |
| parent | 8dc20eafc01a825acd7810c99b51578b2a887e3b (diff) | |
Diffstat (limited to 'app/demo')
| -rw-r--r-- | app/demo/main.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/app/demo/main.c b/app/demo/main.c index 0b83711..0aa4e34 100644 --- a/app/demo/main.c +++ b/app/demo/main.c | |||
| @@ -11,7 +11,8 @@ typedef struct GfxAppState { | |||
| 11 | int unused; | 11 | int unused; |
| 12 | } GfxAppState; | 12 | } GfxAppState; |
| 13 | 13 | ||
| 14 | bool Init(GfxAppState* state, int argc, const char** argv) { | 14 | bool Init(GfxApp* app, GfxAppState* state, int argc, const char** argv) { |
| 15 | assert(app); | ||
| 15 | assert(state); | 16 | assert(state); |
| 16 | 17 | ||
| 17 | (void)argc; | 18 | (void)argc; |
| @@ -20,24 +21,26 @@ bool Init(GfxAppState* state, int argc, const char** argv) { | |||
| 20 | return true; | 21 | return true; |
| 21 | } | 22 | } |
| 22 | 23 | ||
| 23 | void Shutdown(GfxAppState* state) { | 24 | void Shutdown(GfxApp* app, GfxAppState* state) { |
| 25 | assert(app); | ||
| 24 | assert(state); | 26 | assert(state); |
| 25 | // | ||
| 26 | } | 27 | } |
| 27 | 28 | ||
| 28 | void Update(GfxAppState* state, double t, double dt) { | 29 | void Update(GfxApp* app, GfxAppState* state, double t, double dt) { |
| 30 | assert(app); | ||
| 29 | assert(state); | 31 | assert(state); |
| 30 | 32 | ||
| 31 | (void)t; | 33 | (void)t; |
| 32 | (void)dt; | 34 | (void)dt; |
| 33 | } | 35 | } |
| 34 | 36 | ||
| 35 | void Render(GfxAppState* state) { | 37 | void Render(const GfxApp* app, GfxAppState* state) { |
| 38 | assert(app); | ||
| 36 | assert(state); | 39 | assert(state); |
| 37 | // | ||
| 38 | } | 40 | } |
| 39 | 41 | ||
| 40 | void Resize(GfxAppState* state, int width, int height) { | 42 | void Resize(GfxApp* app, GfxAppState* state, int width, int height) { |
| 43 | assert(app); | ||
| 41 | assert(state); | 44 | assert(state); |
| 42 | 45 | ||
| 43 | (void)width; | 46 | (void)width; |
