Skip to content

Commit 377853b

Browse files
committed
REXM: Updated new examples requried files
1 parent a0a0d4d commit 377853b

16 files changed

+2437
-15
lines changed

examples/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ CORE = \
514514
core/core_basic_window \
515515
core/core_custom_frame_control \
516516
core/core_custom_logging \
517+
core/core_delta_time \
517518
core/core_drop_files \
518519
core/core_high_dpi \
519520
core/core_input_actions \
@@ -525,6 +526,7 @@ CORE = \
525526
core/core_input_mouse_wheel \
526527
core/core_input_multitouch \
527528
core/core_input_virtual_controls \
529+
core/core_monitor_change \
528530
core/core_random_sequence \
529531
core/core_random_values \
530532
core/core_render_texture \
@@ -545,6 +547,7 @@ SHAPES = \
545547
shapes/shapes_circle_sector_drawing \
546548
shapes/shapes_collision_area \
547549
shapes/shapes_colors_palette \
550+
shapes/shapes_dashed_line \
548551
shapes/shapes_digital_clock \
549552
shapes/shapes_double_pendulum \
550553
shapes/shapes_easings_ball \
@@ -560,7 +563,7 @@ SHAPES = \
560563
shapes/shapes_rounded_rectangle_drawing \
561564
shapes/shapes_splines_drawing \
562565
shapes/shapes_top_down_lights \
563-
shapes/shapes_dashed_line
566+
shapes/shapes_vector_angle
564567

565568
TEXTURES = \
566569
textures/textures_background_scrolling \
@@ -634,6 +637,7 @@ MODELS = \
634637
models/models_yaw_pitch_roll
635638

636639
SHADERS = \
640+
shaders/shaders_ascii_rendering \
637641
shaders/shaders_basic_lighting \
638642
shaders/shaders_basic_pbr \
639643
shaders/shaders_custom_uniform \

examples/Makefile.Web

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ CORE = \
514514
core/core_basic_window \
515515
core/core_custom_frame_control \
516516
core/core_custom_logging \
517+
core/core_delta_time \
517518
core/core_drop_files \
518519
core/core_high_dpi \
519520
core/core_input_actions \
@@ -525,6 +526,7 @@ CORE = \
525526
core/core_input_mouse_wheel \
526527
core/core_input_multitouch \
527528
core/core_input_virtual_controls \
529+
core/core_monitor_change \
528530
core/core_random_sequence \
529531
core/core_random_values \
530532
core/core_render_texture \
@@ -545,6 +547,7 @@ SHAPES = \
545547
shapes/shapes_circle_sector_drawing \
546548
shapes/shapes_collision_area \
547549
shapes/shapes_colors_palette \
550+
shapes/shapes_dashed_line \
548551
shapes/shapes_digital_clock \
549552
shapes/shapes_double_pendulum \
550553
shapes/shapes_easings_ball \
@@ -560,7 +563,7 @@ SHAPES = \
560563
shapes/shapes_rounded_rectangle_drawing \
561564
shapes/shapes_splines_drawing \
562565
shapes/shapes_top_down_lights \
563-
shapes/shapes_dashed_line
566+
shapes/shapes_vector_angle
564567

565568
TEXTURES = \
566569
textures/textures_background_scrolling \
@@ -634,6 +637,7 @@ MODELS = \
634637
models/models_yaw_pitch_roll
635638

636639
SHADERS = \
640+
shaders/shaders_ascii_rendering \
637641
shaders/shaders_basic_lighting \
638642
shaders/shaders_basic_pbr \
639643
shaders/shaders_custom_uniform \
@@ -731,6 +735,9 @@ core/core_custom_frame_control: core/core_custom_frame_control.c
731735
core/core_custom_logging: core/core_custom_logging.c
732736
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
733737

738+
core/core_delta_time: core/core_delta_time.c
739+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
740+
734741
core/core_drop_files: core/core_drop_files.c
735742
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
736743

@@ -766,6 +773,9 @@ core/core_input_multitouch: core/core_input_multitouch.c
766773
core/core_input_virtual_controls: core/core_input_virtual_controls.c
767774
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
768775

776+
core/core_monitor_change: core/core_monitor_change.c
777+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
778+
769779
core/core_random_sequence: core/core_random_sequence.c
770780
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
771781

@@ -822,6 +832,9 @@ shapes/shapes_collision_area: shapes/shapes_collision_area.c
822832
shapes/shapes_colors_palette: shapes/shapes_colors_palette.c
823833
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
824834

835+
shapes/shapes_dashed_line: shapes/shapes_dashed_line.c
836+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
837+
825838
shapes/shapes_digital_clock: shapes/shapes_digital_clock.c
826839
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
827840

@@ -867,6 +880,9 @@ shapes/shapes_splines_drawing: shapes/shapes_splines_drawing.c
867880
shapes/shapes_top_down_lights: shapes/shapes_top_down_lights.c
868881
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
869882

883+
shapes/shapes_vector_angle: shapes/shapes_vector_angle.c
884+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
885+
870886
# Compile TEXTURES examples
871887
textures/textures_background_scrolling: textures/textures_background_scrolling.c
872888
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
@@ -1158,6 +1174,12 @@ models/models_yaw_pitch_roll: models/models_yaw_pitch_roll.c
11581174
--preload-file models/resources/models/obj/plane_diffuse.png@resources/models/obj/plane_diffuse.png
11591175

11601176
# Compile SHADERS examples
1177+
shaders/shaders_ascii_rendering: shaders/shaders_ascii_rendering.c
1178+
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
1179+
--preload-file shaders/resources/fudesumi.png@resources/fudesumi.png \
1180+
--preload-file shaders/resources/raysan.png@resources/raysan.png \
1181+
--preload-file shaders/resources/shaders/glsl100/ascii.fs@resources/shaders/glsl100/ascii.fs
1182+
11611183
shaders/shaders_basic_lighting: shaders/shaders_basic_lighting.c
11621184
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
11631185
--preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs \

examples/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ You may find it easier to use than other toolchains, especially when it comes to
1919

2020
## EXAMPLES COLLECTION [TOTAL: 166]
2121

22-
### category: core [38]
22+
### category: core [40]
2323

2424
Examples using raylib[core](../src/rcore.c) platform functionality like window creation, inputs, drawing modes and system functionality.
2525

2626
| example | image | difficulty<br>level | version<br>created | last version<br>updated | original<br>developer |
2727
|-----------|--------|:-------------------:|:------------------:|:-----------------------:|:----------------------|
2828
| [core_basic_window](core/core_basic_window.c) | <img src="core/core_basic_window.png" alt="core_basic_window" width="80"> | ⭐☆☆☆ | 1.0 | 1.0 | [Ramon Santamaria](https://github.com/raysan5) |
29+
| [core_delta_time](core/core_delta_time.c) | <img src="core/core_delta_time.png" alt="core_delta_time" width="80"> | ⭐☆☆☆ | 5.5 | 5.6-dev | [Robin](https://github.com/RobinsAviary) |
2930
| [core_input_keys](core/core_input_keys.c) | <img src="core/core_input_keys.png" alt="core_input_keys" width="80"> | ⭐☆☆☆ | 1.0 | 1.0 | [Ramon Santamaria](https://github.com/raysan5) |
3031
| [core_input_mouse](core/core_input_mouse.c) | <img src="core/core_input_mouse.png" alt="core_input_mouse" width="80"> | ⭐☆☆☆ | 1.0 | 5.5 | [Ramon Santamaria](https://github.com/raysan5) |
3132
| [core_input_mouse_wheel](core/core_input_mouse_wheel.c) | <img src="core/core_input_mouse_wheel.png" alt="core_input_mouse_wheel" width="80"> | ⭐☆☆☆ | 1.1 | 1.3 | [Ramon Santamaria](https://github.com/raysan5) |
@@ -63,8 +64,9 @@ Examples using raylib[core](../src/rcore.c) platform functionality like window c
6364
| [core_render_texture](core/core_render_texture.c) | <img src="core/core_render_texture.png" alt="core_render_texture" width="80"> | ⭐☆☆☆ | 5.6-dev | 5.6-dev | [Ramon Santamaria](https://github.com/raysan5) |
6465
| [core_undo_redo](core/core_undo_redo.c) | <img src="core/core_undo_redo.png" alt="core_undo_redo" width="80"> | ⭐⭐⭐☆ | 5.5 | 5.6 | [Ramon Santamaria](https://github.com/raysan5) |
6566
| [core_input_actions](core/core_input_actions.c) | <img src="core/core_input_actions.png" alt="core_input_actions" width="80"> | ⭐⭐☆☆ | 5.5 | 5.6 | [Jett](https://github.com/JettMonstersGoBoom) |
67+
| [core_monitor_change](core/core_monitor_change.c) | <img src="core/core_monitor_change.png" alt="core_monitor_change" width="80"> | ⭐☆☆☆ | 5.5 | 5.6 | [Maicon Santana](https://github.com/maiconpintoabreu) |
6668

67-
### category: shapes [21]
69+
### category: shapes [23]
6870

6971
Examples using raylib shapes drawing functionality, provided by raylib [shapes](../src/rshapes.c) module.
7072

@@ -92,6 +94,7 @@ Examples using raylib shapes drawing functionality, provided by raylib [shapes](
9294
| [shapes_digital_clock](shapes/shapes_digital_clock.c) | <img src="shapes/shapes_digital_clock.png" alt="shapes_digital_clock" width="80"> | ⭐⭐⭐⭐️ | 5.5 | 5.6 | [Hamza RAHAL](https://github.com/hmz-rhl) |
9395
| [shapes_double_pendulum](shapes/shapes_double_pendulum.c) | <img src="shapes/shapes_double_pendulum.png" alt="shapes_double_pendulum" width="80"> | ⭐⭐☆☆ | 5.5 | 5.5 | [JoeCheong](https://github.com/Joecheong2006) |
9496
| [shapes_dashed_line](shapes/shapes_dashed_line.c) | <img src="shapes/shapes_dashed_line.png" alt="shapes_dashed_line" width="80"> | ⭐☆☆☆ | 5.5 | 5.5 | [Luís Almeida](https://github.com/luis605) |
97+
| [shapes_vector_angle](shapes/shapes_vector_angle.c) | <img src="shapes/shapes_vector_angle.png" alt="shapes_vector_angle" width="80"> | ⭐⭐☆☆ | 1.0 | 5.0 | [Ramon Santamaria](https://github.com/raysan5) |
9598

9699
### category: textures [26]
97100

@@ -179,12 +182,13 @@ Examples using raylib models functionality, including models loading/generation
179182
| [models_basic_voxel](models/models_basic_voxel.c) | <img src="models/models_basic_voxel.png" alt="models_basic_voxel" width="80"> | ⭐⭐☆☆ | 5.5 | 5.5 | [Tim Little](https://github.com/timlittle) |
180183
| [models_geometry_textures_cube](models/models_geometry_textures_cube.c) | <img src="models/models_geometry_textures_cube.png" alt="models_geometry_textures_cube" width="80"> | ⭐☆☆☆ | 5.6-dev | 5.6-dev | [Jopestpe](https://github.com/jopestpe) |
181184

182-
### category: shaders [29]
185+
### category: shaders [30]
183186

184187
Examples using raylib shaders functionality, including shaders loading, parameters configuration and drawing using them (model shaders and postprocessing shaders). This functionality is directly provided by raylib [rlgl](../src/rlgl.c) module.
185188

186189
| example | image | difficulty<br>level | version<br>created | last version<br>updated | original<br>developer |
187190
|-----------|--------|:-------------------:|:------------------:|:-----------------------:|:----------------------|
191+
| [shaders_ascii_rendering](shaders/shaders_ascii_rendering.c) | <img src="shaders/shaders_ascii_rendering.png" alt="shaders_ascii_rendering" width="80"> | ⭐⭐☆☆ | 5.5 | 5.6 | [Maicon Santana](https://github.com/maiconpintoabreu) |
188192
| [shaders_basic_lighting](shaders/shaders_basic_lighting.c) | <img src="shaders/shaders_basic_lighting.png" alt="shaders_basic_lighting" width="80"> | ⭐⭐⭐⭐️ | 3.0 | 4.2 | [Chris Camacho](https://github.com/chriscamacho) |
189193
| [shaders_model_shader](shaders/shaders_model_shader.c) | <img src="shaders/shaders_model_shader.png" alt="shaders_model_shader" width="80"> | ⭐⭐☆☆ | 1.3 | 3.7 | [Ramon Santamaria](https://github.com/raysan5) |
190194
| [shaders_shapes_textures](shaders/shaders_shapes_textures.c) | <img src="shaders/shaders_shapes_textures.png" alt="shaders_shapes_textures" width="80"> | ⭐⭐☆☆ | 1.7 | 3.7 | [Ramon Santamaria](https://github.com/raysan5) |

examples/core/core_delta_time.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
*
55
* Example complexity rating: [★☆☆☆] 1/4
66
*
7-
* Example originally created with raylib 5.5
7+
* Example originally created with raylib 5.5, last time updated with raylib 5.6-dev
88
*
99
* Example contributed by Robin (@RobinsAviary) and reviewed by Ramon Santamaria (@raysan5)
1010
*
1111
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
1212
* BSD-like license that allows static linking with closed source software
1313
*
14-
* Copyright (c) 2025-2025 Robin (@RobinsAviary)
14+
* Copyright (c) 2025 Robin (@RobinsAviary)
1515
*
1616
********************************************************************************************/
1717

examples/core/core_monitor_change.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
1212
* BSD-like license that allows static linking with closed source software
1313
*
14-
* Copyright (c) 2025-2025 Maicon Santana (@maiconpintoabreu)
14+
* Copyright (c) 2025 Maicon Santana (@maiconpintoabreu)
1515
*
1616
********************************************************************************************/
1717

examples/examples_list.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ shapes;shapes_splines_drawing;★★★☆;5.0;5.0;2023;2025;"Ramon Santamaria";
6868
shapes;shapes_digital_clock;★★★★;5.5;5.6;2025;2025;"Hamza RAHAL";@hmz-rhl
6969
shapes;shapes_double_pendulum;★★☆☆;5.5;5.5;2025;2025;"JoeCheong";@Joecheong2006
7070
shapes;shapes_dashed_line;★☆☆☆;5.5;5.5;2025;2025;"Luís Almeida";@luis605
71-
shapes;shapes_vector_angle;★★☆☆;1.0;5.0;2025;2025;"Ramon Santamaria";@raysan5
71+
shapes;shapes_vector_angle;★★☆☆;1.0;5.0;2023;2025;"Ramon Santamaria";@raysan5
7272
textures;textures_logo_raylib;★☆☆☆;1.0;1.0;2014;2025;"Ramon Santamaria";@raysan5
7373
textures;textures_srcrec_dstrec;★★★☆;1.3;1.3;2015;2025;"Ramon Santamaria";@raysan5
7474
textures;textures_image_drawing;★★☆☆;1.4;1.4;2016;2025;"Ramon Santamaria";@raysan5
@@ -178,3 +178,4 @@ others;easings_testbed;★★★☆;2.5;3.0;2019;2025;"Juan Miguel López";@flas
178178
others;raylib_opengl_interop;★★★★;3.8;4.0;2021;2025;"Stephan Soller";@arkanis
179179
others;embedded_files_loading;★★☆☆;3.0;3.5;2020;2025;"Kristian Holmgren";@defutura
180180
others;web_basic_window;☆☆☆☆;5.6-dev;5.6-dev;"Ramon Santamaria";@raysan5
181+
core;core_monitor_change;★☆☆☆;5.5;5.6;2025;2025;"Maicon Santana";@maiconpintoabreu

examples/models/models_geometry_textures_cube.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
1212
* BSD-like license that allows static linking with closed source software
1313
*
14-
* Copyright (c) 2025-2025 Jopestpe (@jopestpe)
14+
* Copyright (c) 2025 Jopestpe (@jopestpe)
1515
*
1616
********************************************************************************************/
1717

examples/shaders/shaders_ascii_rendering.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
1212
* BSD-like license that allows static linking with closed source software
1313
*
14-
* Copyright (c) 2025-2025 Maicon Santana (@maiconpintoabreu)
14+
* Copyright (c) 2025 Maicon Santana (@maiconpintoabreu)
1515
*
1616
********************************************************************************************/
1717

examples/shapes/shapes_bullet_hell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
1212
* BSD-like license that allows static linking with closed source software
1313
*
14-
* Copyright (c) 2025-2025 Zero (@zerohorsepower)
14+
* Copyright (c) 2025 Zero (@zerohorsepower)
1515
*
1616
********************************************************************************************/
1717

examples/shapes/shapes_dashed_line.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************************
22
*
3-
* raylib [shapes] example - dashed line drawing
3+
* raylib [shapes] example - dashed line
44
*
55
* Example complexity rating: [★☆☆☆] 1/4
66
*
7-
* Example originally created with raylib 2.5, last time updated with raylib 2.5
7+
* Example originally created with raylib 5.5, last time updated with raylib 5.5
88
*
99
* Example contributed by Luís Almeida (@luis605)
1010
*
@@ -29,7 +29,7 @@ int main(void)
2929
const int screenWidth = 800;
3030
const int screenHeight = 450;
3131

32-
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - interactive dashed line");
32+
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - dashed line");
3333

3434
// Line Properties
3535
Vector2 lineStartPosition = { 20.0f, 50.0f };

0 commit comments

Comments
 (0)