As a beginner, it was not clear to me what the purpose of the LoadCodepoints function is. I am trying to help past me. |
||
---|---|---|
.. | ||
audio | ||
core | ||
models | ||
others | ||
shaders | ||
shapes | ||
text | ||
textures | ||
build.zig | ||
CMakeLists.txt | ||
examples.rc | ||
examples_template.c | ||
Makefile | ||
Makefile.Android | ||
Makefile.Web | ||
raylib.ico | ||
raylib_compile_execute.bat | ||
raylib_makefile_example.bat | ||
README.md |
Building the Examples
The examples assume you have already built the raylib
library in ../src
.
With GNU make
make
builds all examplesmake [module]
builds all examples for a particular module (e.gmake core
)
With Zig
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 LIST
category: core
Examples using raylib core platform functionality like window creation, inputs, drawing modes and system functionality.
category: shapes
Examples using raylib shapes drawing functionality, provided by raylib shapes module.
## | example | image | difficulty level |
version created |
last version updated |
original developer |
---|---|---|---|---|---|---|
36 | shapes_basic_shapes | ![]() |
⭐️☆☆☆ | 1.0 | 4.2 | Ray |
37 | shapes_bouncing_ball | ![]() |
⭐️☆☆☆ | 2.5 | 2.5 | Ray |
38 | shapes_colors_palette | ![]() |
⭐️⭐️☆☆ | 1.0 | 2.5 | Ray |
39 | shapes_logo_raylib | ![]() |
⭐️☆☆☆ | 1.0 | 1.0 | Ray |
40 | shapes_logo_raylib_anim | ![]() |
⭐️⭐️☆☆ | 2.5 | 4.0 | Ray |
41 | shapes_rectangle_scaling | ![]() |
⭐️⭐️☆☆ | 2.5 | 2.5 | Vlad Adrian |
42 | shapes_lines_bezier | ![]() |
⭐️☆☆☆ | 1.7 | 1.7 | Ray |
43 | shapes_collision_area | ![]() |
⭐️⭐️☆☆ | 2.5 | 2.5 | Ray |
44 | shapes_following_eyes | ![]() |
⭐️⭐️☆☆ | 2.5 | 2.5 | Ray |
45 | shapes_easings_ball_anim | ![]() |
⭐️⭐️☆☆ | 2.5 | 2.5 | Ray |
46 | shapes_easings_box_anim | ![]() |
⭐️⭐️☆☆ | 2.5 | 2.5 | Ray |
47 | shapes_easings_rectangle_array | ![]() |
⭐️⭐️⭐️☆ | 2.0 | 2.5 | Ray |
48 | shapes_draw_ring | ![]() |
⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian |
49 | shapes_draw_circle_sector | ![]() |
⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian |
50 | shapes_draw_rectangle_rounded | ![]() |
⭐️⭐️⭐️☆ | 2.5 | 2.5 | Vlad Adrian |
51 | shapes_top_down_lights | ![]() |
⭐️⭐️⭐️⭐️ | 4.2 | 4.2 | Jeffery Myers |
52 | shapes_rectangle_advanced | ![]() |
⭐️⭐️⭐️⭐️ | 5.5 | 5.5 | Everton Jr. |
53 | shapes_splines_drawing | ![]() |
⭐️⭐️⭐️☆ | 5.0 | 5.0 | Ray |
category: textures
Examples using raylib textures functionality, including image/textures loading/generation and drawing, provided by raylib textures modul
category: text
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 |
---|---|---|---|---|---|---|
80 | text_raylib_fonts | ![]() |
⭐️☆☆☆ | 1.7 | 3.7 | Ray |
81 | text_font_spritefont | ![]() |
⭐️☆☆☆ | 1.0 | 1.0 | Ray |
82 | text_font_filters | ![]() |
⭐️⭐️☆☆ | 1.3 | 4.2 | Ray |
83 | text_font_loading | ![]() |
⭐️☆☆☆ | 1.4 | 3.0 | Ray |
84 | text_font_sdf | ![]() |
⭐️⭐️⭐️☆ | 1.3 | 4.0 | Ray |
85 | text_format_text | ![]() |
⭐️☆☆☆ | 1.1 | 3.0 | Ray |
86 | text_input_box | ![]() |
⭐️⭐️☆☆ | 1.7 | 3.5 | Ray |
87 | text_writing_anim | ![]() |
⭐️⭐️☆☆ | 1.4 | 1.4 | Ray |
88 | text_rectangle_bounds | ![]() |
⭐️⭐️⭐️⭐️ | 2.5 | 4.0 | Vlad Adrian |
89 | text_unicode | ![]() |
⭐️⭐️⭐️⭐️ | 2.5 | 4.0 | Vlad Adrian |
90 | text_draw_3d | ![]() |
⭐️⭐️⭐️⭐️ | 3.5 | 4.0 | Vlad Adrian |
91 | text_codepoints_loading | ![]() |
⭐️⭐️⭐️☆ | 4.2 | 4.2 | Ray |
category: models
Examples using raylib models functionality, including models loading/generation and drawing, provided by raylib models module.
category: shaders
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.
category: audio
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 |
---|---|---|---|---|---|---|
142 | audio_module_playing | ![]() |
⭐️☆☆☆ | 1.5 | 3.5 | Ray |
143 | audio_music_stream | ![]() |
⭐️☆☆☆ | 1.3 | 4.2 | Ray |
144 | audio_raw_stream | ![]() |
⭐️⭐️⭐️☆ | 1.6 | 4.2 | Ray |
145 | audio_sound_loading | ![]() |
⭐️☆☆☆ | 1.1 | 3.5 | Ray |
146 | audio_mixed_processor | ![]() |
⭐️⭐️⭐️⭐️ | 4.2 | 4.2 | hkc |
147 | audio_stream_effects | ![]() |
⭐️⭐️⭐️⭐️ | 4.2 | 5.0 | Ray |
148 | audio_sound_multi | ![]() |
⭐️⭐️☆☆ | 4.6 | 4.6 | Jeffery Myers |
category: others
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 |
---|---|---|---|---|---|---|
149 | rlgl_standalone | ![]() |
⭐️⭐️⭐️⭐️ | 1.6 | 4.0 | Ray |
150 | rlgl_compute_shader | ![]() |
⭐️⭐️⭐️⭐️ | 4.0 | 4.0 | Teddy Astie |
151 | easings_testbed | ![]() |
⭐️⭐️⭐️☆ | 2.5 | 3.0 | Juan Miguel López |
152 | raylib_opengl_interop | ![]() |
⭐️⭐️⭐️⭐️ | 3.8 | 4.0 | Stephan Soller |
153 | embedded_files_loading | ![]() |
⭐️⭐️☆☆ | 3.0 | 3.5 | Kristian Holmgren |
154 | raymath_vector_angle | ![]() |
⭐️⭐️☆☆ | 1.0 | 4.6 | Ray |
As always contributions are welcome, feel free to send new examples! Here is an examples template to start with!