diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 23:15:36 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-30 23:15:36 +1100 |
commit | f26f084958550cd01b9e4e4b098551520a4c6852 (patch) | |
tree | 1b835288f94461ba86aca8cff723d3364556db52 /examples/main_loop | |
parent | b4cb698d177ada97c976eab059eabedd433abfd0 (diff) | |
parent | c20740ecbb008afbe93c7fa1eb35851cedc6eb42 (diff) |
Merge branch 'cel-60-scaffold-vulkan' into cleanroom-vulkan
Diffstat (limited to 'examples/main_loop')
-rw-r--r-- | examples/main_loop/ex_main_loop.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/main_loop/ex_main_loop.c b/examples/main_loop/ex_main_loop.c index 728290f..25dbf4a 100644 --- a/examples/main_loop/ex_main_loop.c +++ b/examples/main_loop/ex_main_loop.c @@ -1,6 +1,7 @@ #include <glfw3.h> #include "core.h" +#include "maths.h" #include "render.h" #include "render_backend.h" @@ -14,7 +15,11 @@ int main() { render_frame_begin(&core->renderer); - gfx_backend_draw_frame(&core->renderer); + static f32 x = 0.0; + x += 0.01; + mat4 model = mat4_translation(vec3(x, 0, 0)); + + gfx_backend_draw_frame(&core->renderer, model); // insert work here |