aboutsummaryrefslogtreecommitdiff
path: root/src/models.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-02-26 12:10:45 +0100
committerRay <raysan5@gmail.com>2018-02-26 12:10:45 +0100
commitfd2adbe62ded6cb91ae7684331381afe0675df69 (patch)
treee4c272e7b9f9489b3026b5b54f9c71f86a32baa7 /src/models.c
parenta7207dc6d4bc4fa7deb21bb090d4d6692e86fdf3 (diff)
downloadraylib-fd2adbe62ded6cb91ae7684331381afe0675df69.tar.gz
raylib-fd2adbe62ded6cb91ae7684331381afe0675df69.zip
Renamed CalculateBoundingBox() to MeshBoundingBox()
Renamed function for consistency with a possible Mesh manipulation functions (maybe added in a future). Naming follows Image*() manipulation functions.
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/models.c b/src/models.c
index 63d227e3..8e9a6586 100644
--- a/src/models.c
+++ b/src/models.c
@@ -2055,9 +2055,9 @@ RayHitInfo GetCollisionRayGround(Ray ray, float groundHeight)
return result;
}
-// Calculate mesh bounding box limits
+// Compute mesh bounding box limits
// NOTE: minVertex and maxVertex should be transformed by model transform matrix
-BoundingBox CalculateBoundingBox(Mesh mesh)
+BoundingBox MeshBoundingBox(Mesh mesh)
{
// Get min and max vertex to construct bounds (AABB)
Vector3 minVertex = { 0 };
@@ -2083,16 +2083,16 @@ BoundingBox CalculateBoundingBox(Mesh mesh)
return box;
}
-// Compute provided mesh tangents
+// Compute mesh tangents
void MeshTangents(Mesh *mesh)
{
- // TODO: Calculate mesh tangents
+ // TODO: Compute mesh tangents
}
-// Compute provided mesh binormals
+// Compute mesh binormals
void MeshBinormals(Mesh *mesh)
{
- // TODO: Calculate mesh binormals
+ // TODO: Compute mesh binormals
}
//----------------------------------------------------------------------------------