summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorPtitLuca <[email protected]>2021-06-18 11:26:59 +0200
committerPtitLuca <[email protected]>2021-06-18 11:26:59 +0200
commit448d8308b6ee1703d386c230fbd3010a2357695a (patch)
tree181dad05feb7484297db2b07242cb22000f27241 /examples
parent41892992be9226d7a47b51b9ebf3118a9ee4934b (diff)
downloadraylib.com-448d8308b6ee1703d386c230fbd3010a2357695a.tar.gz
raylib.com-448d8308b6ee1703d386c230fbd3010a2357695a.zip
fix: change all occurences of MeshBoundingBox to GetMeshBoundingBox
Diffstat (limited to 'examples')
-rw-r--r--examples/web/models/models_loading.c4
-rw-r--r--examples/web/models/models_mesh_picking.c2
2 files changed, 3 insertions, 3 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
}
diff --git a/examples/web/models/models_mesh_picking.c b/examples/web/models/models_mesh_picking.c
index 2751918..90105ef 100644
--- a/examples/web/models/models_mesh_picking.c
+++ b/examples/web/models/models_mesh_picking.c
@@ -72,7 +72,7 @@ int main(void)
texture = LoadTexture("resources/models/turret_diffuse.png"); // Load model texture
tower.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set model diffuse texture
- towerBBox = MeshBoundingBox(tower.meshes[0]); // Get mesh bounding box
+ towerBBox = GetMeshBoundingBox(tower.meshes[0]); // Get mesh bounding box
SetCameraMode(camera, CAMERA_FREE); // Set a free camera mode