summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2021-10-06 01:20:46 +0200
committerRay <[email protected]>2021-10-06 01:20:46 +0200
commit8d7f97ee04c1908caf703771bd3576ef5f26b3c1 (patch)
treed3d54c266b45fbdec20d25c6511eda6658a2f92d
parent9a4fb252858d3754f347b22fb88f2d507fc847b3 (diff)
downloadraylib-8d7f97ee04c1908caf703771bd3576ef5f26b3c1.tar.gz
raylib-8d7f97ee04c1908caf703771bd3576ef5f26b3c1.zip
Remove trailing spaces
-rw-r--r--src/raymath.h2
-rw-r--r--src/rcamera.h2
-rw-r--r--src/rcore.c2
-rw-r--r--src/rlgl.h8
-rw-r--r--src/rmodels.c2
-rw-r--r--src/rtextures.c2
6 files changed, 9 insertions, 9 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 795720e1..43606436 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -541,7 +541,7 @@ RMAPI float Vector3Distance(Vector3 v1, Vector3 v2)
RMAPI Vector2 Vector3Angle(Vector3 v1, Vector3 v2)
{
Vector2 result = { 0 };
-
+
float dx = v2.x - v1.x;
float dy = v2.y - v1.y;
float dz = v2.z - v1.z;
diff --git a/src/rcamera.h b/src/rcamera.h
index 06be1432..5edd79de 100644
--- a/src/rcamera.h
+++ b/src/rcamera.h
@@ -467,7 +467,7 @@ void UpdateCamera(Camera *camera)
matRotation.m2 = -siny;
matRotation.m6 = cosy*sinx;
matRotation.m10= cosy*cosx;
-
+
// Multiply translation and rotation matrices
Matrix matTransform = { 0 };
matTransform.m0 = matTranslation.m0*matRotation.m0 + matTranslation.m1*matRotation.m4 + matTranslation.m2*matRotation.m8 + matTranslation.m3*matRotation.m12;
diff --git a/src/rcore.c b/src/rcore.c
index 3d89338c..3824d3e7 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3917,7 +3917,7 @@ static bool InitGraphicsDevice(int width, int height)
if ((-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
{
TRACELOG(LOG_INFO, "DISPLAY: Failed to open platform-gpu-card, trying card1");
- CORE.Window.fd = open("/dev/dri/card1", O_RDWR); // Other Embedded
+ CORE.Window.fd = open("/dev/dri/card1", O_RDWR); // Other Embedded
}
if ((-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
{
diff --git a/src/rlgl.h b/src/rlgl.h
index 0e9ee34e..cd2396a5 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -851,7 +851,7 @@ typedef struct rlglData {
float texcoordx, texcoordy; // Current active texture coordinate
float normalx, normaly, normalz; // Current active normal
unsigned char colorr, colorg, colorb, colora; // Current active color
-
+
int currentMatrixMode; // Current matrix mode
Matrix *currentMatrix; // Current matrix pointer
Matrix modelview; // Default modelview matrix
@@ -1296,15 +1296,15 @@ void rlVertex3f(float x, float y, float z)
// Add current normal
// TODO.
-
+
// Add current color
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter] = RLGL.State.colorr;
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter + 1] = RLGL.State.colorg;
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter + 2] = RLGL.State.colorb;
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter + 3] = RLGL.State.colora;
-
+
RLGL.State.vertexCounter++;
-
+
RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount++;
}
else TRACELOG(RL_LOG_ERROR, "RLGL: Batch elements overflow");
diff --git a/src/rmodels.c b/src/rmodels.c
index 11778901..26421df9 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -5756,7 +5756,7 @@ static Model LoadVOX(const char *fileName)
pcolors->g = voxarray.colors.array->g;
pcolors->b = voxarray.colors.array->b;
pcolors->a = voxarray.colors.array->a;
-
+
unsigned short *pindices = voxarray.indices.array; // 5461*6*6 = 196596 indices max per mesh
int size = 0;
diff --git a/src/rtextures.c b/src/rtextures.c
index 0daf6a71..0c186394 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -2294,7 +2294,7 @@ Rectangle GetImageAlphaBorder(Image image, float threshold)
Color GetImageColor(Image image, int x, int y)
{
Color color = { 0 };
-
+
if ((x >=0) && (x < image.width) && (y >= 0) && (y < image.height))
{
switch (image.format)