summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-07-22 22:15:50 +0200
committerraysan5 <[email protected]>2017-07-22 22:15:50 +0200
commita766e2c4808a554f5b6cfd07e6c4dceef711c9f8 (patch)
treeeefa520024b67a2b23ce18462641b4504d4b61c9 /src/rlgl.c
parent3655c6e4663d62e93099cdf4871a03a4b0944c6a (diff)
downloadraylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.tar.gz
raylib-a766e2c4808a554f5b6cfd07e6c4dceef711c9f8.zip
Updated Vector math to new naming
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 244badc9..e681ad50 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -455,7 +455,7 @@ void rlRotatef(float angleDeg, float x, float y, float z)
Matrix matRotation = MatrixIdentity();
Vector3 axis = (Vector3){ x, y, z };
- VectorNormalize(&axis);
+ Vector3Normalize(&axis);
matRotation = MatrixRotate(axis, angleDeg*DEG2RAD);
*currentMatrix = MatrixMultiply(*currentMatrix, matRotation);
@@ -553,7 +553,7 @@ void rlEnd(void)
// This way, rlTranslatef(), rlRotatef()... behaviour is the same than OpenGL 1.1
// Apply transformation matrix to all temp vertices
- for (int i = 0; i < tempBufferCount; i++) VectorTransform(&tempBuffer[i], *currentMatrix);
+ for (int i = 0; i < tempBufferCount; i++) Vector3Transform(&tempBuffer[i], *currentMatrix);
// Deactivate tempBuffer usage to allow rlVertex3f do its job
useTempBuffer = false;
@@ -1178,7 +1178,7 @@ void rlglInit(int width, int height)
// Init temp vertex buffer, used when transformation required (translate, rotate, scale)
tempBuffer = (Vector3 *)malloc(sizeof(Vector3)*TEMP_VERTEX_BUFFER_SIZE);
- for (int i = 0; i < TEMP_VERTEX_BUFFER_SIZE; i++) tempBuffer[i] = VectorZero();
+ for (int i = 0; i < TEMP_VERTEX_BUFFER_SIZE; i++) tempBuffer[i] = Vector3Zero();
// Init draw calls tracking system
draws = (DrawCall *)malloc(sizeof(DrawCall)*MAX_DRAWS_BY_TEXTURE);