diff options
| -rw-r--r-- | app/demo/main.c | 17 | ||||
| -rw-r--r-- | 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 { | |||
| 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; |
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 @@ | |||
| 3 | #include <math/aabb2.h> | 3 | #include <math/aabb2.h> |
| 4 | #include <math/aabb3.h> | 4 | #include <math/aabb3.h> |
| 5 | #include <math/vec3.h> | 5 | #include <math/vec3.h> |
| 6 | #include <math/vec4.h> | ||
| 6 | 7 | ||
| 7 | typedef struct Imm Imm; | 8 | typedef struct Imm Imm; |
| 8 | 9 | ||
