From ef858b0dbb1fd2bca84caf2eb8952829107a39de Mon Sep 17 00:00:00 2001 From: raysan5 Date: Thu, 14 Oct 2021 13:37:22 +0200 Subject: Review examples --- examples/models/models_loading_gltf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/models/models_loading_gltf.c') diff --git a/examples/models/models_loading_gltf.c b/examples/models/models_loading_gltf.c index 5ef5fc5a..ac72b9d1 100644 --- a/examples/models/models_loading_gltf.c +++ b/examples/models/models_loading_gltf.c @@ -40,8 +40,8 @@ int main(void) camera.fovy = 45.0f; // Camera field-of-view Y camera.projection = CAMERA_PERSPECTIVE; // Camera mode type + // Load some models Model model[MAX_MODELS] = { 0 }; - model[0] = LoadModel("resources/models/gltf/raylib_32x32.glb"); model[1] = LoadModel("resources/models/gltf/rigged_figure.glb"); model[2] = LoadModel("resources/models/gltf/GearboxAssy.glb"); @@ -65,7 +65,7 @@ int main(void) { // Update //---------------------------------------------------------------------------------- - UpdateCamera(&camera); + UpdateCamera(&camera); // Update our camera with inputs if (IsKeyReleased(KEY_RIGHT)) { @@ -78,6 +78,7 @@ int main(void) currentModel--; if (currentModel < 0) currentModel = MAX_MODELS - 1; } + //---------------------------------------------------------------------------------- // Draw //---------------------------------------------------------------------------------- @@ -87,8 +88,7 @@ int main(void) BeginMode3D(camera); - DrawModelEx(model[currentModel], position, (Vector3){ 0.0f, 1.0f, 0.0f }, 180.0f, (Vector3){ 2.0f, 2.0f, 2.0f }, WHITE); - + DrawModel(model[currentModel], position, 1.0f, WHITE); DrawGrid(10, 1.0f); // Draw a grid EndMode3D(); -- cgit v1.2.3