diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-01 01:57:11 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-01 01:57:11 +1100 |
commit | fb3e055ff500e530e9ec46317441688bf4d07e13 (patch) | |
tree | 7ac25e379ac06f91d8bb26b178f64b9cc19b9f68 /examples/input | |
parent | b771fc06a4339f466c0864ad896d5a96aee7e35d (diff) |
image / textures !
Diffstat (limited to 'examples/input')
-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); } |