aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-01-04 20:02:57 +0100
committerraysan5 <raysan5@gmail.com>2016-01-04 20:02:57 +0100
commit891c4a458a2fb03737c75def69dd6b0d67d38ad5 (patch)
treeebd481cfb2e40983ad01b33703e1f32edb1e1c44 /src/rlgl.c
parent70d405b41bcbbd73b9f752f4dc3910100abd1a36 (diff)
downloadraylib-891c4a458a2fb03737c75def69dd6b0d67d38ad5.tar.gz
raylib-891c4a458a2fb03737c75def69dd6b0d67d38ad5.zip
Matrix variables renaming
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 504381b2..4531f2d8 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -397,33 +397,33 @@ void rlLoadIdentity(void)
// Multiply the current matrix by a translation matrix
void rlTranslatef(float x, float y, float z)
{
- Matrix mat = MatrixTranslate(x, y, z);
- MatrixTranspose(&mat);
+ Matrix matTranslation = MatrixTranslate(x, y, z);
+ MatrixTranspose(&matTranslation);
- *currentMatrix = MatrixMultiply(*currentMatrix, mat);
+ *currentMatrix = MatrixMultiply(*currentMatrix, matTranslation);
}
// Multiply the current matrix by a rotation matrix
void rlRotatef(float angleDeg, float x, float y, float z)
{
- Matrix rotation = MatrixIdentity();
+ Matrix matRotation = MatrixIdentity();
Vector3 axis = (Vector3){ x, y, z };
VectorNormalize(&axis);
- rotation = MatrixRotate(angleDeg*DEG2RAD, axis);
+ matRotation = MatrixRotate(angleDeg*DEG2RAD, axis);
- MatrixTranspose(&rotation);
+ MatrixTranspose(&matRotation);
- *currentMatrix = MatrixMultiply(*currentMatrix, rotation);
+ *currentMatrix = MatrixMultiply(*currentMatrix, matRotation);
}
// Multiply the current matrix by a scaling matrix
void rlScalef(float x, float y, float z)
{
- Matrix mat = MatrixScale(x, y, z);
- MatrixTranspose(&mat);
+ Matrix matScale = MatrixScale(x, y, z);
+ MatrixTranspose(&matScale);
- *currentMatrix = MatrixMultiply(*currentMatrix, mat);
+ *currentMatrix = MatrixMultiply(*currentMatrix, matScale);
}
// Multiply the current matrix by another matrix