From 152602413ebde5e2563595baa2b9324158002bd8 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 5 Apr 2026 17:16:38 -0700 Subject: Updates --- app/demo/main.c | 17 ++++++++++------- include/gfx/render/imm.h | 1 + 2 files changed, 11 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 { int unused; } GfxAppState; -bool Init(GfxAppState* state, int argc, const char** argv) { +bool Init(GfxApp* app, GfxAppState* state, int argc, const char** argv) { + assert(app); assert(state); (void)argc; @@ -20,24 +21,26 @@ bool Init(GfxAppState* state, int argc, const char** argv) { return true; } -void Shutdown(GfxAppState* state) { +void Shutdown(GfxApp* app, GfxAppState* state) { + assert(app); assert(state); - // } -void Update(GfxAppState* state, double t, double dt) { +void Update(GfxApp* app, GfxAppState* state, double t, double dt) { + assert(app); assert(state); (void)t; (void)dt; } -void Render(GfxAppState* state) { +void Render(const GfxApp* app, GfxAppState* state) { + assert(app); assert(state); - // } -void Resize(GfxAppState* state, int width, int height) { +void Resize(GfxApp* app, GfxAppState* state, int width, int height) { + assert(app); assert(state); (void)width; diff --git a/include/gfx/render/imm.h b/include/gfx/render/imm.h index 62c071e..00af997 100644 --- a/include/gfx/render/imm.h +++ b/include/gfx/render/imm.h @@ -3,6 +3,7 @@ #include #include #include +#include typedef struct Imm Imm; -- cgit v1.2.3