Skip to content

Commit 8b68d54

Browse files
committed
Reviewing some examples titles
1 parent b04a94d commit 8b68d54

9 files changed

+17
-12
lines changed

examples/text/text_codepoints_loading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [text] example - text codepoints loading
3+
* raylib [text] example - codepoints loading
44
*
55
* Example complexity rating: [★★★☆] 3/4
66
*

examples/text/text_font_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(void)
2929
const int screenWidth = 800;
3030
const int screenHeight = 450;
3131

32-
InitWindow(screenWidth, screenHeight, "raylib [text] example - font filters");
32+
InitWindow(screenWidth, screenHeight, "raylib [text] example - font texture filters");
3333

3434
const char msg[50] = "Loaded Font";
3535

examples/text/text_font_loading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [text] example - Font loading
3+
* raylib [text] example - font loading
44
*
55
* Example complexity rating: [★☆☆☆] 1/4
66
*

examples/text/text_font_sdf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main(void)
3333
const int screenWidth = 800;
3434
const int screenHeight = 450;
3535

36-
InitWindow(screenWidth, screenHeight, "raylib [text] example - SDF fonts");
36+
InitWindow(screenWidth, screenHeight, "raylib [text] example - font SDF loading");
3737

3838
// NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required)
3939

examples/text/text_format_text.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main(void)
2525
const int screenWidth = 800;
2626
const int screenHeight = 450;
2727

28-
InitWindow(screenWidth, screenHeight, "raylib [text] example - text formatting");
28+
InitWindow(screenWidth, screenHeight, "raylib [text] example - text formating");
2929

3030
int score = 100020;
3131
int hiscore = 200450;

examples/text/text_input_box.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [text] example - text input box
3+
* raylib [text] example - input box
44
*
55
* Example complexity rating: [★★☆☆] 2/4
66
*

examples/text/text_raylib_fonts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [text] example - sprite fonts loading
3+
* raylib [text] example - sprite fonts
44
*
55
* Example complexity rating: [★☆☆☆] 1/4
66
*

examples/text/text_rectangle_bounds.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717

1818
#include "raylib.h"
1919

20-
static void DrawTextBoxed(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint); // Draw text using font inside rectangle limits
21-
static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectTint, Color selectBackTint); // Draw text using font inside rectangle limits with support for text selection
20+
//----------------------------------------------------------------------------------
21+
// Module functions declaration
22+
//----------------------------------------------------------------------------------
23+
// Draw text using font inside rectangle limits
24+
static void DrawTextBoxed(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint);
25+
// Draw text using font inside rectangle limits with support for text selection
26+
static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, int selectStart, int selectLength, Color selectTint, Color selectBackTint);
2227

2328
//------------------------------------------------------------------------------------
2429
// Program main entry point
@@ -30,7 +35,7 @@ int main(void)
3035
const int screenWidth = 800;
3136
const int screenHeight = 450;
3237

33-
InitWindow(screenWidth, screenHeight, "raylib [text] example - draw text inside a rectangle");
38+
InitWindow(screenWidth, screenHeight, "raylib [text] example - rectangle bounds");
3439

3540
const char text[] = "Text cannot escape\tthis container\t...word wrap also works when active so here's \
3641
a long text for testing.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \

examples/textures/textures_draw_tiled.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************************
22
*
3-
* raylib [textures] example - draw texture tiled
3+
* raylib [textures] example - texture tiled drawing
44
*
55
* Example complexity rating: [★★★☆] 3/4
66
*
@@ -36,7 +36,7 @@ int main(void)
3636
const int screenHeight = 450;
3737

3838
SetConfigFlags(FLAG_WINDOW_RESIZABLE); // Make the window resizable
39-
InitWindow(screenWidth, screenHeight, "raylib [textures] example - draw texture tiled");
39+
InitWindow(screenWidth, screenHeight, "raylib [textures] example - textures tiled drawing");
4040

4141
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
4242
Texture texPattern = LoadTexture("resources/patterns.png");

0 commit comments

Comments
 (0)