Skip to content

Commit 4d0c3af

Browse files
committed
REXM: Update examples and lists
1 parent 0e5837f commit 4d0c3af

File tree

9 files changed

+807
-194
lines changed

9 files changed

+807
-194
lines changed

examples/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ TEXT = \
599599
text/text_raylib_fonts \
600600
text/text_rectangle_bounds \
601601
text/text_unicode \
602+
text/text_unicode_ranges \
602603
text/text_writing_anim
603604

604605
MODELS = \

examples/Makefile.Web

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ TEXT = \
599599
text/text_raylib_fonts \
600600
text/text_rectangle_bounds \
601601
text/text_unicode \
602+
text/text_unicode_ranges \
602603
text/text_writing_anim
603604

604605
MODELS = \
@@ -999,14 +1000,14 @@ text/text_input_box: text/text_input_box.c
9991000

10001001
text/text_raylib_fonts: text/text_raylib_fonts.c
10011002
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
1002-
--preload-file text/resources/fonts/alagard.png@resources/fonts/alagard.png \
1003-
--preload-file text/resources/fonts/pixelplay.png@resources/fonts/pixelplay.png \
1004-
--preload-file text/resources/fonts/mecha.png@resources/fonts/mecha.png \
1005-
--preload-file text/resources/fonts/setback.png@resources/fonts/setback.png \
1006-
--preload-file text/resources/fonts/romulus.png@resources/fonts/romulus.png \
1007-
--preload-file text/resources/fonts/pixantiqua.png@resources/fonts/pixantiqua.png \
1008-
--preload-file text/resources/fonts/alpha_beta.png@resources/fonts/alpha_beta.png \
1009-
--preload-file text/resources/fonts/jupiter_crash.png@resources/fonts/jupiter_crash.png
1003+
--preload-file text/resources/sprite_fonts/alagard.png@resources/sprite_fonts/alagard.png \
1004+
--preload-file text/resources/sprite_fonts/pixelplay.png@resources/sprite_fonts/pixelplay.png \
1005+
--preload-file text/resources/sprite_fonts/mecha.png@resources/sprite_fonts/mecha.png \
1006+
--preload-file text/resources/sprite_fonts/setback.png@resources/sprite_fonts/setback.png \
1007+
--preload-file text/resources/sprite_fonts/romulus.png@resources/sprite_fonts/romulus.png \
1008+
--preload-file text/resources/sprite_fonts/pixantiqua.png@resources/sprite_fonts/pixantiqua.png \
1009+
--preload-file text/resources/sprite_fonts/alpha_beta.png@resources/sprite_fonts/alpha_beta.png \
1010+
--preload-file text/resources/sprite_fonts/jupiter_crash.png@resources/sprite_fonts/jupiter_crash.png
10101011

10111012
text/text_rectangle_bounds: text/text_rectangle_bounds.c
10121013
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
@@ -1017,6 +1018,10 @@ text/text_unicode: text/text_unicode.c
10171018
--preload-file text/resources/noto_cjk.fnt@resources/noto_cjk.fnt \
10181019
--preload-file text/resources/symbola.fnt@resources/symbola.fnt
10191020

1021+
text/text_unicode_ranges: text/text_unicode_ranges.c
1022+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
1023+
--preload-file text/resources/NotoSansTC-Regular.ttf@resources/NotoSansTC-Regular.ttf
1024+
10201025
text/text_writing_anim: text/text_writing_anim.c
10211026
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
10221027

examples/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You may find it easier to use than other toolchains, especially when it comes to
1616
- `zig build [module]` to compile all examples for a module (e.g. `zig build core`)
1717
- `zig build [example]` to compile _and run_ a particular example (e.g. `zig build core_basic_window`)
1818

19-
## EXAMPLES COLLECTION [TOTAL: 161]
19+
## EXAMPLES COLLECTION [TOTAL: 162]
2020

2121
### category: core [37]
2222

@@ -122,7 +122,7 @@ Examples using raylib textures functionality, including image/textures loading/g
122122
| [textures_image_rotate](textures/textures_image_rotate.c) | <img src="textures/textures_image_rotate.png" alt="textures_image_rotate" width="80"> | ⭐⭐☆☆ | 1.0 | 1.0 | [Ramon Santamaria](https://github.com/raysan5) |
123123
| [textures_textured_curve](textures/textures_textured_curve.c) | <img src="textures/textures_textured_curve.png" alt="textures_textured_curve" width="80"> | ⭐⭐⭐☆ | 4.5 | 4.5 | [Jeffery Myers](https://github.com/JeffM2501) |
124124

125-
### category: text [12]
125+
### category: text [13]
126126

127127
Examples using raylib text functionality, including sprite fonts loading/generation and text drawing, provided by raylib [text](../src/rtext.c) module.
128128

@@ -140,6 +140,7 @@ Examples using raylib text functionality, including sprite fonts loading/generat
140140
| [text_unicode](text/text_unicode.c) | <img src="text/text_unicode.png" alt="text_unicode" width="80"> | ⭐⭐⭐⭐️ | 2.5 | 4.0 | [Vlad Adrian](https://github.com/demizdor) |
141141
| [text_draw_3d](text/text_draw_3d.c) | <img src="text/text_draw_3d.png" alt="text_draw_3d" width="80"> | ⭐⭐⭐⭐️ | 3.5 | 4.0 | [Vlad Adrian](https://github.com/demizdor) |
142142
| [text_codepoints_loading](text/text_codepoints_loading.c) | <img src="text/text_codepoints_loading.png" alt="text_codepoints_loading" width="80"> | ⭐⭐⭐☆ | 4.2 | 4.2 | [Ramon Santamaria](https://github.com/raysan5) |
143+
| [text_unicode_ranges](text/text_unicode_ranges.c) | <img src="text/text_unicode_ranges.png" alt="text_unicode_ranges" width="80"> | ⭐⭐⭐⭐️ | 2.5 | 4.0 | [Vlad Adrian](https://github.com/demizdor) |
143144

144145
### category: models [23]
145146

examples/examples_list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,4 @@ others;easings_testbed;⭐️⭐️⭐️☆;2.5;3.0;"Juan Miguel López";@flash
168168
others;raylib_opengl_interop;⭐️⭐️⭐️⭐️;3.8;4.0;"Stephan Soller";@arkanis
169169
others;embedded_files_loading;⭐️⭐️☆☆;3.0;3.5;"Kristian Holmgren";@defutura
170170
others;raymath_vector_angle;⭐️⭐️☆☆;1.0;4.6;"Ramon Santamaria";@raysan5
171+
text;text_unicode_ranges;⭐⭐⭐⭐️;2.5;4.0;"Vlad Adrian";@demizdor

examples/shapes/shapes_digital_clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ static void DrawClock(Clock clock, Vector2 centerPosition)
182182
DrawRectanglePro((Rectangle){ centerPosition.x, centerPosition.y, clock.hour.length, clock.hour.thickness },
183183
(Vector2){ 0.0f, clock.hour.thickness/2.0f }, clock.hour.angle, clock.hour.color);
184184
}
185-
}
185+
}

0 commit comments

Comments
 (0)