diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-04-27 13:08:03 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-04-27 13:08:03 +1000 |
commit | 4cbc38b92edaa331fd0f6a077bbe7d7aebdb9ecf (patch) | |
tree | 753d23b07b09e3494e4cce594bd4b0f4710566f8 /examples/gltf_loading/ex_gltf_loading.c | |
parent | d6837defc03e431517f6616ec8e49a8eb3643011 (diff) | |
parent | c7c33cd18e057bc826a0d31e1860b0ac396a00b6 (diff) |
Merge remote-tracking branch 'origin/cel-67-load-animation-data-from-gltf' into ral
Diffstat (limited to 'examples/gltf_loading/ex_gltf_loading.c')
-rw-r--r-- | examples/gltf_loading/ex_gltf_loading.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/gltf_loading/ex_gltf_loading.c b/examples/gltf_loading/ex_gltf_loading.c index 0c47fec..fa74ada 100644 --- a/examples/gltf_loading/ex_gltf_loading.c +++ b/examples/gltf_loading/ex_gltf_loading.c @@ -1,8 +1,10 @@ #include <glfw3.h> +#include "animation.h" #include "camera.h" #include "core.h" #include "loaders.h" +#include "log.h" #include "maths.h" #include "maths_types.h" #include "render.h" @@ -52,7 +54,7 @@ int main() { scene our_scene = { .dir_light = dir_light, .n_point_lights = 4 }; memcpy(&our_scene.point_lights, &point_lights, sizeof(point_light[4])); - while (!glfwWindowShouldClose(core->renderer.window)) { + while (!should_exit(core)) { currentFrame = glfwGetTime(); deltaTime = currentFrame - lastFrame; lastFrame = currentFrame; |