Remove trailing spaces
This commit is contained in:
parent
9a4fb25285
commit
8d7f97ee04
6 changed files with 9 additions and 9 deletions
|
@ -541,7 +541,7 @@ RMAPI float Vector3Distance(Vector3 v1, Vector3 v2)
|
||||||
RMAPI Vector2 Vector3Angle(Vector3 v1, Vector3 v2)
|
RMAPI Vector2 Vector3Angle(Vector3 v1, Vector3 v2)
|
||||||
{
|
{
|
||||||
Vector2 result = { 0 };
|
Vector2 result = { 0 };
|
||||||
|
|
||||||
float dx = v2.x - v1.x;
|
float dx = v2.x - v1.x;
|
||||||
float dy = v2.y - v1.y;
|
float dy = v2.y - v1.y;
|
||||||
float dz = v2.z - v1.z;
|
float dz = v2.z - v1.z;
|
||||||
|
|
|
@ -467,7 +467,7 @@ void UpdateCamera(Camera *camera)
|
||||||
matRotation.m2 = -siny;
|
matRotation.m2 = -siny;
|
||||||
matRotation.m6 = cosy*sinx;
|
matRotation.m6 = cosy*sinx;
|
||||||
matRotation.m10= cosy*cosx;
|
matRotation.m10= cosy*cosx;
|
||||||
|
|
||||||
// Multiply translation and rotation matrices
|
// Multiply translation and rotation matrices
|
||||||
Matrix matTransform = { 0 };
|
Matrix matTransform = { 0 };
|
||||||
matTransform.m0 = matTranslation.m0*matRotation.m0 + matTranslation.m1*matRotation.m4 + matTranslation.m2*matRotation.m8 + matTranslation.m3*matRotation.m12;
|
matTransform.m0 = matTranslation.m0*matRotation.m0 + matTranslation.m1*matRotation.m4 + matTranslation.m2*matRotation.m8 + matTranslation.m3*matRotation.m12;
|
||||||
|
|
|
@ -3917,7 +3917,7 @@ static bool InitGraphicsDevice(int width, int height)
|
||||||
if ((-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
|
if ((-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_INFO, "DISPLAY: Failed to open platform-gpu-card, trying card1");
|
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))
|
if ((-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
|
||||||
{
|
{
|
||||||
|
|
|
@ -851,7 +851,7 @@ typedef struct rlglData {
|
||||||
float texcoordx, texcoordy; // Current active texture coordinate
|
float texcoordx, texcoordy; // Current active texture coordinate
|
||||||
float normalx, normaly, normalz; // Current active normal
|
float normalx, normaly, normalz; // Current active normal
|
||||||
unsigned char colorr, colorg, colorb, colora; // Current active color
|
unsigned char colorr, colorg, colorb, colora; // Current active color
|
||||||
|
|
||||||
int currentMatrixMode; // Current matrix mode
|
int currentMatrixMode; // Current matrix mode
|
||||||
Matrix *currentMatrix; // Current matrix pointer
|
Matrix *currentMatrix; // Current matrix pointer
|
||||||
Matrix modelview; // Default modelview matrix
|
Matrix modelview; // Default modelview matrix
|
||||||
|
@ -1296,15 +1296,15 @@ void rlVertex3f(float x, float y, float z)
|
||||||
|
|
||||||
// Add current normal
|
// Add current normal
|
||||||
// TODO.
|
// TODO.
|
||||||
|
|
||||||
// Add current color
|
// 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] = 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 + 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 + 2] = RLGL.State.colorb;
|
||||||
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter + 3] = RLGL.State.colora;
|
RLGL.currentBatch->vertexBuffer[RLGL.currentBatch->currentBuffer].colors[4*RLGL.State.vertexCounter + 3] = RLGL.State.colora;
|
||||||
|
|
||||||
RLGL.State.vertexCounter++;
|
RLGL.State.vertexCounter++;
|
||||||
|
|
||||||
RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount++;
|
RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount++;
|
||||||
}
|
}
|
||||||
else TRACELOG(RL_LOG_ERROR, "RLGL: Batch elements overflow");
|
else TRACELOG(RL_LOG_ERROR, "RLGL: Batch elements overflow");
|
||||||
|
|
|
@ -5756,7 +5756,7 @@ static Model LoadVOX(const char *fileName)
|
||||||
pcolors->g = voxarray.colors.array->g;
|
pcolors->g = voxarray.colors.array->g;
|
||||||
pcolors->b = voxarray.colors.array->b;
|
pcolors->b = voxarray.colors.array->b;
|
||||||
pcolors->a = voxarray.colors.array->a;
|
pcolors->a = voxarray.colors.array->a;
|
||||||
|
|
||||||
unsigned short *pindices = voxarray.indices.array; // 5461*6*6 = 196596 indices max per mesh
|
unsigned short *pindices = voxarray.indices.array; // 5461*6*6 = 196596 indices max per mesh
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
|
|
|
@ -2294,7 +2294,7 @@ Rectangle GetImageAlphaBorder(Image image, float threshold)
|
||||||
Color GetImageColor(Image image, int x, int y)
|
Color GetImageColor(Image image, int x, int y)
|
||||||
{
|
{
|
||||||
Color color = { 0 };
|
Color color = { 0 };
|
||||||
|
|
||||||
if ((x >=0) && (x < image.width) && (y >= 0) && (y < image.height))
|
if ((x >=0) && (x < image.width) && (y >= 0) && (y < image.height))
|
||||||
{
|
{
|
||||||
switch (image.format)
|
switch (image.format)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue