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