summaryrefslogtreecommitdiff
path: root/examples/main_loop
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 21:39:31 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-30 21:39:31 +1100
commitf7b91c2eae24ecb7a20b638246fb849d6c63615a (patch)
tree4bdf8fd3425db9f0203f7cf1c58464f4be88e720 /examples/main_loop
parent16237e6499f47d963df35c0f0c4649900ec98d84 (diff)
start adding mouse input processing
Diffstat (limited to 'examples/main_loop')
-rw-r--r--examples/main_loop/ex_main_loop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/main_loop/ex_main_loop.c b/examples/main_loop/ex_main_loop.c
index 9a6f98c..25dbf4a 100644
--- a/examples/main_loop/ex_main_loop.c
+++ b/examples/main_loop/ex_main_loop.c
@@ -15,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