summaryrefslogtreecommitdiff
path: root/examples/main_loop/ex_main_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/main_loop/ex_main_loop.c')
-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