EXAMPLES: Format tweaks

This commit is contained in:
Ray
2025-08-07 17:08:22 +02:00
parent 9f07cfe0b7
commit f0889a74fe
91 changed files with 409 additions and 397 deletions

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Codepoints loading
* raylib [text] example - text codepoints loading
*
* Example complexity rating: [★★★☆] 3/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Draw 3d
* raylib [text] example - drawing 3d text
*
* Example complexity rating: [★★★★] 4/4
*
@@ -12,7 +12,7 @@
* map that texture to a plane and render that, or maybe a shader but my method allows more
* flexibility...for example to change position of each letter individually to make somethink
* like a wavy text effect.
*
*
* Special thanks to:
* @Nighten for the DrawTextStyle() code https://github.com/NightenDushi/Raylib_DrawTextStyle
* Chris Camacho (codifies - http://bedroomcoders.co.uk/) for the alpha discard shader
@@ -146,7 +146,7 @@ int main(void)
// Update
//----------------------------------------------------------------------------------
UpdateCamera(&camera, camera_mode);
// Handle font files dropped
if (IsFileDropped())
{
@@ -164,7 +164,7 @@ int main(void)
font = LoadFont(droppedFiles.paths[0]);
fontSize = (float)font.baseSize;
}
UnloadDroppedFiles(droppedFiles); // Unload filepaths from memory
}

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Font filters
* raylib [text] example - font texture filters
*
* Example complexity rating: [★★☆☆] 2/4
*
@@ -94,7 +94,7 @@ int main(void)
UnloadFont(font);
font = LoadFontEx(droppedFiles.paths[0], (int)fontSize, 0, 0);
}
UnloadDroppedFiles(droppedFiles); // Unload filepaths from memory
}
//----------------------------------------------------------------------------------

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Font SDF loading
* raylib [text] example - font SDF loading
*
* Example complexity rating: [★★★☆] 3/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Sprite font loading
* raylib [text] example - sprite font loading
*
* Example complexity rating: [★☆☆☆] 1/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Text formatting
* raylib [text] example - text formating
*
* Example complexity rating: [★☆☆☆] 1/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Input Box
* raylib [text] example - text input box
*
* Example complexity rating: [★★☆☆] 2/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Rectangle bounds
* raylib [text] example - rectangle bounds
*
* Example complexity rating: [★★★★] 4/4
*

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Unicode
* raylib [text] example - unicode text drawing
*
* Example complexity rating: [★★★★] 4/4
*
@@ -284,7 +284,7 @@ int main(void)
int length = GetCodepointCount(messages[message].text);
const char *info = TextFormat("%s %u characters %i bytes", messages[message].language, length, size);
sz = MeasureTextEx(GetFontDefault(), info, 10, 1.0f);
DrawText(info, (int)(textRect.x + textRect.width - sz.x), (int)(msgRect.y + msgRect.height - sz.y - 2), 10, RAYWHITE);
}
//------------------------------------------------------------------------------

View File

@@ -1,6 +1,6 @@
/*******************************************************************************************
*
* raylib [text] example - Text Writing Animation
* raylib [text] example - text writing animation
*
* Example complexity rating: [★★☆☆] 2/4
*