aboutsummaryrefslogtreecommitdiff
path: root/app/demo
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-04-05 17:16:38 -0700
committer3gg <3gg@shellblade.net>2026-04-05 17:16:38 -0700
commit152602413ebde5e2563595baa2b9324158002bd8 (patch)
tree30d6cfe1153cc7e0619affcfb51aecdd82fa7b21 /app/demo
parent8dc20eafc01a825acd7810c99b51578b2a887e3b (diff)
UpdatesHEADmain
Diffstat (limited to 'app/demo')
-rw-r--r--app/demo/main.c17
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
14bool Init(GfxAppState* state, int argc, const char** argv) { 14bool 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
23void Shutdown(GfxAppState* state) { 24void Shutdown(GfxApp* app, GfxAppState* state) {
25 assert(app);
24 assert(state); 26 assert(state);
25 //
26} 27}
27 28
28void Update(GfxAppState* state, double t, double dt) { 29void 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
35void Render(GfxAppState* state) { 37void Render(const GfxApp* app, GfxAppState* state) {
38 assert(app);
36 assert(state); 39 assert(state);
37 //
38} 40}
39 41
40void Resize(GfxAppState* state, int width, int height) { 42void 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;