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/input/ex_input.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/input/ex_input.c')
-rw-r--r-- | examples/input/ex_input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/input/ex_input.c b/examples/input/ex_input.c index 3101968..576b364 100644 --- a/examples/input/ex_input.c +++ b/examples/input/ex_input.c @@ -30,6 +30,10 @@ int main() { .first_mouse_update = true, }; + // load a texture + texture tex = texture_data_load("assets/models/obj/cube/container.jpg", false); + texture_data_upload(&tex); + printf("Starting look direction: "); print_vec3(game.camera.front); @@ -65,7 +69,7 @@ int main() { mat4 model = mat4_translation(VEC3_ZERO); - gfx_backend_draw_frame(&core->renderer, &game.camera, model); + gfx_backend_draw_frame(&core->renderer, &game.camera, model, &tex); render_frame_end(&core->renderer); } |