summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-17 00:04:24 +0200
committerRay <[email protected]>2021-06-17 00:04:24 +0200
commit4decbb258617f67c6b3122412fe1c698507b1331 (patch)
tree6436588538007eedf863770e1052747480ef556e
parentf3d38018cdc306503b7533bfe3a9f1f70ed7edc4 (diff)
downloadraylib-4decbb258617f67c6b3122412fe1c698507b1331.tar.gz
raylib-4decbb258617f67c6b3122412fe1c698507b1331.zip
RENAMED: MeshTangents() -> GenMeshTangents()
RENAMED: MeshBinormals() -> GenMeshBinormals()
-rw-r--r--src/models.c4
-rw-r--r--src/raylib.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/models.c b/src/models.c
index 09cd431c..f9dec64f 100644
--- a/src/models.c
+++ b/src/models.c
@@ -2646,7 +2646,7 @@ BoundingBox GetMeshBoundingBox(Mesh mesh)
// Compute mesh tangents
// NOTE: To calculate mesh tangents and binormals we need mesh vertex positions and texture coordinates
// Implementation base don: https://answers.unity.com/questions/7789/calculating-tangents-vector4.html
-void MeshTangents(Mesh *mesh)
+void GenMeshTangents(Mesh *mesh)
{
if (mesh->tangents == NULL) mesh->tangents = (float *)RL_MALLOC(mesh->vertexCount*4*sizeof(float));
else TRACELOG(LOG_WARNING, "MESH: Tangents data already available, re-writting");
@@ -2726,7 +2726,7 @@ void MeshTangents(Mesh *mesh)
}
// Compute mesh binormals (aka bitangent)
-void MeshBinormals(Mesh *mesh)
+void GenMeshBinormals(Mesh *mesh)
{
for (int i = 0; i < mesh->vertexCount; i++)
{
diff --git a/src/raylib.h b/src/raylib.h
index cedf4f5d..661c4c09 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1435,8 +1435,8 @@ RLAPI Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize);
// Mesh manipulation functions
RLAPI BoundingBox GetMeshBoundingBox(Mesh mesh); // Compute mesh bounding box limits
-RLAPI void MeshTangents(Mesh *mesh); // Compute mesh tangents
-RLAPI void MeshBinormals(Mesh *mesh); // Compute mesh binormals
+RLAPI void GenMeshTangents(Mesh *mesh); // Compute mesh tangents
+RLAPI void GenMeshBinormals(Mesh *mesh); // Compute mesh binormals
// Model drawing functions
RLAPI void DrawModel(Model model, Vector3 position, float scale, Color tint); // Draw a model (with texture if set)