Replace tabs with spaces and update year of copyright notices (#927)
* Update year of copyright notices * Fix mistake in comment * Fix typo ("algorythms") * Replace tabs with spaces * Remove trailing whitespace and fix mistake in comment * Fix ExportImageAsCode missing comment rectangle corner * Replace tab with spaces * Replace tabs with spaces
This commit is contained in:
parent
68ffbc06c7
commit
89c16baf18
@ -2482,7 +2482,7 @@ bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, floa
|
|||||||
/*
|
/*
|
||||||
float dx = centerA.x - centerB.x; // X distance between centers
|
float dx = centerA.x - centerB.x; // X distance between centers
|
||||||
float dy = centerA.y - centerB.y; // Y distance between centers
|
float dy = centerA.y - centerB.y; // Y distance between centers
|
||||||
float dz = centerA.z - centerB.z; // Y distance between centers
|
float dz = centerA.z - centerB.z; // Z distance between centers
|
||||||
|
|
||||||
float distance = sqrtf(dx*dx + dy*dy + dz*dz); // Distance between centers
|
float distance = sqrtf(dx*dx + dy*dy + dz*dz); // Distance between centers
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* [core] rgif (Charlie Tangora, Ramon Santamaria) for GIF recording
|
* [core] rgif (Charlie Tangora, Ramon Santamaria) for GIF recording
|
||||||
* [textures] stb_image (Sean Barret) for images loading (BMP, TGA, PNG, JPEG, HDR...)
|
* [textures] stb_image (Sean Barret) for images loading (BMP, TGA, PNG, JPEG, HDR...)
|
||||||
* [textures] stb_image_write (Sean Barret) for image writting (BMP, TGA, PNG, JPG)
|
* [textures] stb_image_write (Sean Barret) for image writting (BMP, TGA, PNG, JPG)
|
||||||
* [textures] stb_image_resize (Sean Barret) for image resizing algorythms
|
* [textures] stb_image_resize (Sean Barret) for image resizing algorithms
|
||||||
* [textures] stb_perlin (Sean Barret) for Perlin noise image generation
|
* [textures] stb_perlin (Sean Barret) for Perlin noise image generation
|
||||||
* [text] stb_truetype (Sean Barret) for ttf fonts loading
|
* [text] stb_truetype (Sean Barret) for ttf fonts loading
|
||||||
* [text] stb_rect_pack (Sean Barret) for rectangles packing
|
* [text] stb_rect_pack (Sean Barret) for rectangles packing
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
* LICENSE: zlib/libpng
|
* LICENSE: zlib/libpng
|
||||||
*
|
*
|
||||||
* Copyright (c) 2015-2017 Ramon Santamaria (@raysan5)
|
* Copyright (c) 2015-2019 Ramon Santamaria (@raysan5)
|
||||||
*
|
*
|
||||||
* This software is provided "as-is", without any express or implied warranty. In no event
|
* This software is provided "as-is", without any express or implied warranty. In no event
|
||||||
* will the authors be held liable for any damages arising from the use of this software.
|
* will the authors be held liable for any damages arising from the use of this software.
|
||||||
@ -148,7 +148,7 @@ RMDEF float Clamp(float value, float min, float max)
|
|||||||
return res > max ? max : res;
|
return res > max ? max : res;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate linear interpolation between two vectors
|
// Calculate linear interpolation between two floats
|
||||||
RMDEF float Lerp(float start, float end, float amount)
|
RMDEF float Lerp(float start, float end, float amount)
|
||||||
{
|
{
|
||||||
return start + amount*(end - start);
|
return start + amount*(end - start);
|
||||||
|
@ -823,14 +823,15 @@ void ExportImageAsCode(Image image, const char *fileName)
|
|||||||
|
|
||||||
FILE *txtFile = fopen(fileName, "wt");
|
FILE *txtFile = fopen(fileName, "wt");
|
||||||
|
|
||||||
fprintf(txtFile, "\n//////////////////////////////////////////////////////////////////////////////////////\n");
|
fprintf(txtFile, "\n");
|
||||||
|
fprintf(txtFile, "////////////////////////////////////////////////////////////////////////////////////////\n");
|
||||||
fprintf(txtFile, "// //\n");
|
fprintf(txtFile, "// //\n");
|
||||||
fprintf(txtFile, "// ImageAsCode exporter v1.0 - Image pixel data exported as an array of bytes //\n");
|
fprintf(txtFile, "// ImageAsCode exporter v1.0 - Image pixel data exported as an array of bytes //\n");
|
||||||
fprintf(txtFile, "// //\n");
|
fprintf(txtFile, "// //\n");
|
||||||
fprintf(txtFile, "// more info and bugs-report: github.com/raysan5/raylib //\n");
|
fprintf(txtFile, "// more info and bugs-report: github.com/raysan5/raylib //\n");
|
||||||
fprintf(txtFile, "// feedback and support: ray[at]raylib.com //\n");
|
fprintf(txtFile, "// feedback and support: ray[at]raylib.com //\n");
|
||||||
fprintf(txtFile, "// //\n");
|
fprintf(txtFile, "// //\n");
|
||||||
fprintf(txtFile, "// Copyright (c) 2018 Ramon Santamaria (@raysan5) //\n");
|
fprintf(txtFile, "// Copyright (c) 2019 Ramon Santamaria (@raysan5) //\n");
|
||||||
fprintf(txtFile, "// //\n");
|
fprintf(txtFile, "// //\n");
|
||||||
fprintf(txtFile, "////////////////////////////////////////////////////////////////////////////////////////\n\n");
|
fprintf(txtFile, "////////////////////////////////////////////////////////////////////////////////////////\n\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user