diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-05 00:28:24 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-05 00:28:24 +1100 |
commit | e5495790aeba905505152ad3b6690f459a44df03 (patch) | |
tree | 719095667250b5163c05325452179e6779612b7d /examples/gltf_loading | |
parent | 9baff5661f2ba8b57e1b0794e490e239b7ef80ca (diff) |
close.
Diffstat (limited to 'examples/gltf_loading')
-rw-r--r-- | examples/gltf_loading/ex_gltf_loading.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/gltf_loading/ex_gltf_loading.c b/examples/gltf_loading/ex_gltf_loading.c index 867ddb2..1d279eb 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" @@ -54,6 +56,9 @@ int main() { scene our_scene = { .dir_light = dir_light, .n_point_lights = 4 }; memcpy(&our_scene.point_lights, &point_lights, sizeof(point_light[4])); + animation_clip track = cube->animations->data[0]; + f32 total_time = 0.0; + while (!glfwWindowShouldClose(core->renderer.window)) { currentFrame = glfwGetTime(); deltaTime = currentFrame - lastFrame; |