diff options
| author | raysan5 <raysan5@gmail.com> | 2016-01-04 20:02:57 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-01-04 20:02:57 +0100 |
| commit | 891c4a458a2fb03737c75def69dd6b0d67d38ad5 (patch) | |
| tree | ebd481cfb2e40983ad01b33703e1f32edb1e1c44 /src/rlgl.c | |
| parent | 70d405b41bcbbd73b9f752f4dc3910100abd1a36 (diff) | |
| download | raylib-891c4a458a2fb03737c75def69dd6b0d67d38ad5.tar.gz raylib-891c4a458a2fb03737c75def69dd6b0d67d38ad5.zip | |
Matrix variables renaming
Diffstat (limited to 'src/rlgl.c')
| -rw-r--r-- | src/rlgl.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 |
