summaryrefslogtreecommitdiffhomepage
path: root/examples/web/models/models_loading.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/models/models_loading.c')
-rw-r--r--examples/web/models/models_loading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/models/models_loading.c b/examples/web/models/models_loading.c
index e88c902..439bf49 100644
--- a/examples/web/models/models_loading.c
+++ b/examples/web/models/models_loading.c
@@ -68,7 +68,7 @@ int main(void)
texture = LoadTexture("resources/models/castle_diffuse.png"); // Load model texture
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
- bounds = MeshBoundingBox(model.meshes[0]); // Set model bounds
+ bounds = GetMeshBoundingBox(model.meshes[0]); // Set model bounds
// NOTE: bounds are calculated from the original size of the model,
// if model is scaled on drawing, bounds must be also scaled
@@ -124,7 +124,7 @@ void UpdateDrawFrame(void)
model = LoadModel(droppedFiles[0]); // Load new model
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set current map diffuse texture
- bounds = MeshBoundingBox(model.meshes[0]);
+ bounds = GetMeshBoundingBox(model.meshes[0]);
// TODO: Move camera position from target enough distance to visualize model properly
}