mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
Remove trailing spaces
This commit is contained in:
2
src/external/rl_gputex.h
vendored
2
src/external/rl_gputex.h
vendored
@@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
* Note that some file formats (DDS, PVR, KTX) also support uncompressed data storage.
|
* Note that some file formats (DDS, PVR, KTX) also support uncompressed data storage.
|
||||||
* In those cases data is loaded uncompressed and format is returned.
|
* In those cases data is loaded uncompressed and format is returned.
|
||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - Implement raylib function: rlGetGlTextureFormats(), required by rl_save_ktx_to_memory()
|
* - Implement raylib function: rlGetGlTextureFormats(), required by rl_save_ktx_to_memory()
|
||||||
* - Review rl_load_ktx_from_memory() to support KTX v2.2 specs
|
* - Review rl_load_ktx_from_memory() to support KTX v2.2 specs
|
||||||
|
@@ -3,10 +3,10 @@
|
|||||||
* raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions
|
* raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions
|
||||||
*
|
*
|
||||||
* CONVENTIONS:
|
* CONVENTIONS:
|
||||||
* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all
|
* - Matrix structure is defined as row-major (memory layout) but parameters naming AND all
|
||||||
* math operations performed by the library consider the structure as it was column-major
|
* math operations performed by the library consider the structure as it was column-major
|
||||||
* It is like transposed versions of the matrices are used for all the maths
|
* It is like transposed versions of the matrices are used for all the maths
|
||||||
* It benefits some functions making them cache-friendly and also avoids matrix
|
* It benefits some functions making them cache-friendly and also avoids matrix
|
||||||
* transpositions sometimes required by OpenGL
|
* transpositions sometimes required by OpenGL
|
||||||
* Example: In memory order, row0 is [m0 m4 m8 m12] but in semantic math row0 is [m0 m1 m2 m3]
|
* Example: In memory order, row0 is [m0 m4 m8 m12] but in semantic math row0 is [m0 m1 m2 m3]
|
||||||
* - Functions are always self-contained, no function use another raymath function inside,
|
* - Functions are always self-contained, no function use another raymath function inside,
|
||||||
|
@@ -298,7 +298,7 @@ bool ExportDataAsCode(const unsigned char *data, unsigned int size, const char *
|
|||||||
char varFileName[256] = { 0 };
|
char varFileName[256] = { 0 };
|
||||||
strcpy(varFileName, GetFileNameWithoutExt(fileName));
|
strcpy(varFileName, GetFileNameWithoutExt(fileName));
|
||||||
for (int i = 0; varFileName[i] != '\0'; i++) if ((varFileName[i] >= 'a') && (varFileName[i] <= 'z')) { varFileName[i] = varFileName[i] - 32; }
|
for (int i = 0; varFileName[i] != '\0'; i++) if ((varFileName[i] >= 'a') && (varFileName[i] <= 'z')) { varFileName[i] = varFileName[i] - 32; }
|
||||||
|
|
||||||
byteCount += sprintf(txtData + byteCount, "#define %s_DATA_SIZE %i\n\n", varFileName, size);
|
byteCount += sprintf(txtData + byteCount, "#define %s_DATA_SIZE %i\n\n", varFileName, size);
|
||||||
|
|
||||||
byteCount += sprintf(txtData + byteCount, "static unsigned char %s_DATA[%s_DATA_SIZE] = { ", varFileName, varFileName);
|
byteCount += sprintf(txtData + byteCount, "static unsigned char %s_DATA[%s_DATA_SIZE] = { ", varFileName, varFileName);
|
||||||
|
Reference in New Issue
Block a user