Ray 0d39e7137b | il y a 3 semaines | |
---|---|---|
.. | ||
audio | il y a 4 mois | |
core | il y a 4 semaines | |
models | il y a 1 mois | |
others | il y a 9 mois | |
shaders | il y a 3 semaines | |
shapes | il y a 1 mois | |
text | il y a 4 mois | |
textures | il y a 2 mois | |
CMakeLists.txt | il y a 6 mois | |
Makefile | il y a 1 mois | |
Makefile.Android | il y a 8 mois | |
Makefile.Web | il y a 1 mois | |
README.md | il y a 1 mois | |
build.zig | il y a 6 mois | |
examples.rc | il y a 5 mois | |
examples_template.c | il y a 1 an | |
raylib.ico | il y a 5 mois | |
raylib_compile_execute.bat | il y a 1 an | |
raylib_makefile_example.bat | il y a 1 an |
The examples assume you have already built the raylib
library in ../src
.
make
builds all examplesmake [module]
builds all examples for a particular module (e.g make core
)The Zig toolchain can compile C
and C++
in addition to Zig
.
You may find it easier to use than other toolchains, especially when it comes to cross-compiling.
zig build
to compile all exampleszig build [module]
to compile all examples for a module (e.g. zig build core
)zig build [example]
to compile and run a particular example (e.g. zig build core_basic_window
)Examples using raylib core platform functionality like window creation, inputs, drawing modes and system functionality.
Examples using raylib shapes drawing functionality, provided by raylib shapes module.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
34 | shapes_basic_shapes | ⭐️☆☆☆ | 1.0 | 4.0 | Ray | |
35 | shapes_bouncing_ball | ⭐️☆☆☆ | 2.5 | 2.5 | Ray | |
36 | shapes_colors_palette | ⭐️⭐️☆☆ | 1.0 | 2.5 | Ray | |
37 | shapes_logo_raylib | ⭐️☆☆☆ | 1.0 | 1.0 | Ray | |
38 | shapes_logo_raylib_anim | ⭐️⭐️☆☆ | 2.5 | 4.0 | Ray | |
39 | shapes_rectangle_scaling | ⭐️⭐️☆☆ | 2.5 | 2.5 | Vlad Adrian | |
40 | shapes_lines_bezier | ⭐️☆☆☆ | 1.7 | 1.7 | Ray | |
41 | shapes_collision_area | ⭐️⭐️☆☆ | 2.5 | 2.5 | Ray | |
42 | shapes_following_eyes | ⭐️⭐️☆☆ | 2.5 | 2.5 | Ray | |
43 | shapes_easings_ball_anim | ⭐️⭐️☆☆ | 2.5 | 2.5 | Ray | |
44 | shapes_easings_box_anim | ⭐️⭐️☆☆ | 2.5 | 2.5 | Ray | |
45 | shapes_easings_rectangle_array | ⭐️⭐️⭐️☆ | 2.5 | 2.5 | Ray | |
46 | shapes_draw_ring | ⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian | |
47 | shapes_draw_circle_sector | ⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian | |
48 | shapes_draw_rectangle_rounded | ⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian | |
49 | shapes_top_down_lights | ⭐️⭐️⭐️⭐️ | 4.2 | 4.2 | Jeffery Myers | |
50 | shapes_rectangle_advanced | ⭐️⭐️⭐️⭐️⭐️ | 5.0 | 5.0 | ExCyber |
Examples using raylib textures functionality, including image/textures loading/generation and drawing, provided by raylib textures module.
Examples using raylib text functionality, including sprite fonts loading/generation and text drawing, provided by raylib text module.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
73 | text_raylib_fonts | ⭐️☆☆☆ | 1.7 | 3.7 | Ray | |
74 | text_font_spritefont | ⭐️☆☆☆ | 1.0 | 1.0 | Ray | |
75 | text_font_filters | ⭐️⭐️☆☆ | 1.3 | 4.2 | Ray | |
76 | text_font_loading | ⭐️☆☆☆ | 1.4 | 3.0 | Ray | |
77 | text_font_sdf | ⭐️⭐️⭐️☆ | 1.3 | 4.0 | Ray | |
78 | text_format_text | ⭐️☆☆☆ | 1.1 | 3.0 | Ray | |
79 | text_input_box | ⭐️⭐️☆☆ | 1.7 | 3.5 | Ray | |
80 | text_writing_anim | ⭐️⭐️☆☆ | 1.4 | 1.4 | Ray | |
81 | text_rectangle_bounds | ⭐️⭐️⭐️⭐️ | 2.5 | 4.0 | Vlad Adrian | |
82 | text_unicode | ⭐️⭐️⭐️⭐️ | 2.5 | 4.0 | Vlad Adrian | |
83 | text_draw_3d | ⭐️⭐️⭐️⭐️ | 3.5 | 4.0 | Vlad Adrian | |
84 | text_codepoints_loading | ⭐️⭐️⭐️☆ | 4.2 | 4.2 | Ray |
Examples using raylib models functionality, including models loading/generation and drawing, provided by raylib models module.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
85 | models_animation | ⭐️⭐️☆☆ | 2.5 | 3.5 | culacant | |
86 | models_billboard | ⭐️⭐️⭐️☆ | 1.3 | 3.5 | Ray | |
87 | models_box_collisions | ⭐️☆☆☆ | 1.3 | 3.5 | Ray | |
88 | models_cubicmap | ⭐️⭐️☆☆ | 1.8 | 3.5 | Ray | |
89 | models_first_person_maze | ⭐️⭐️☆☆ | 2.5 | 3.5 | Ray | |
90 | models_geometric_shapes | ⭐️☆☆☆ | 1.0 | 3.5 | Ray | |
91 | models_mesh_generation | ⭐️⭐️☆☆ | 1.8 | 4.0 | Ray | |
92 | models_mesh_picking | ⭐️⭐️⭐️☆ | 1.7 | 4.0 | Joel Davis | |
93 | models_loading | ⭐️☆☆☆ | 2.5 | 4.0 | Ray | |
94 | models_loading_gltf | ⭐️☆☆☆ | 3.7 | 4.2 | Ray | |
95 | models_loading_vox | ⭐️☆☆☆ | 4.0 | 4.0 | Johann Nadalutti | |
96 | models_loading_m3d | ⭐️☆☆☆ | 4.2 | 4.2 | bzt | |
97 | models_orthographic_projection | ⭐️☆☆☆ | 2.0 | 3.7 | Max Danielsson | |
98 | models_point_rendering | ⭐️⭐️☆☆ | 5.0 | 5.0 | Reese Gallagher | |
99 | models_rlgl_solar_system | ⭐️⭐️⭐️⭐️ | 2.5 | 4.0 | Ray | |
100 | models_yaw_pitch_roll | ⭐️⭐️☆☆ | 1.8 | 4.0 | Berni | |
101 | models_waving_cubes | ⭐️⭐️⭐️☆ | 2.5 | 3.7 | codecat | |
102 | models_heightmap | ⭐️☆☆☆ | 1.8 | 3.5 | Ray | |
103 | models_skybox | ⭐️⭐️☆☆ | 1.8 | 4.0 | Ray |
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 module.
Examples using raylib audio functionality, including sound/music loading and playing. This functionality is provided by raylib raudio module. Note this module can be used standalone independently of raylib, check raudio_standalone example.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
123 | audio_module_playing | ⭐️☆☆☆ | 1.5 | 3.5 | Ray | |
124 | audio_music_stream | ⭐️☆☆☆ | 1.3 | 4.2 | Ray | |
125 | audio_raw_stream | ⭐️⭐️⭐️☆ | 1.6 | 4.2 | Ray | |
126 | audio_sound_loading | ⭐️☆☆☆ | 1.1 | 3.5 | Ray |
Examples showing raylib misc functionality that does not fit in other categories, like standalone modules usage or examples integrating external libraries.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
127 | rlgl_standalone | ⭐️⭐️⭐️⭐️ | 1.6 | 4.0 | Ray | |
128 | rlgl_compute_shader | ⭐️⭐️⭐️⭐️ | 4.0 | 4.0 | Teddy Astie | |
129 | easings_testbed | ⭐️⭐️⭐️☆ | 3.0 | 3.0 | Juan Miguel López | |
130 | raylib_opengl_interop | ⭐️⭐️⭐️⭐️ | 4.0 | 4.0 | Stephan Soller | |
131 | embedded_files_loading | ⭐️⭐️☆☆ | 3.5 | 3.5 | Kristian Holmgren |
As always contributions are welcome, feel free to send new examples! Here is an examples template to start with!