diff --git a/examples/Makefile b/examples/Makefile index 4f86ad5c0..2db2d8453 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -729,13 +729,6 @@ AUDIO = \ audio/audio_spectrum_visualizer \ audio/audio_stream_effects -OTHERS = \ - others/easings_testbed \ - others/embedded_files_loading \ - others/raylib_opengl_interop \ - others/rlgl_compute_shader \ - others/rlgl_standalone \ - others/web_basic_window #EXAMPLES_LIST_END # Define processes to execute diff --git a/examples/others/web_basic_window.c b/examples/core/core_window_web.c similarity index 93% rename from examples/others/web_basic_window.c rename to examples/core/core_window_web.c index 217c47fbc..3b1b50748 100644 --- a/examples/others/web_basic_window.c +++ b/examples/core/core_window_web.c @@ -1,14 +1,14 @@ /******************************************************************************************* * -* raylib [others] example - basic window -* -* This example has been adapted to compile for PLATFORM_WEB and PLATFORM_DESKTOP -* As you will notice, code structure is slightly different to the other examples +* raylib [core] example - window web * * Example complexity rating: [★☆☆☆] 1/4 * * Example originally created with raylib 1.3, last time updated with raylib 5.5 * +* This example has been adapted to compile for PLATFORM_WEB and PLATFORM_DESKTOP +* As you will notice, code structure is slightly different to the other examples +* * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, * BSD-like license that allows static linking with closed source software * @@ -40,7 +40,7 @@ int main(void) { // Initialization //-------------------------------------------------------------------------------------- - InitWindow(screenWidth, screenHeight, "raylib [others] example - web basic window"); + InitWindow(screenWidth, screenHeight, "raylib [core] example - window web"); #if defined(PLATFORM_WEB) emscripten_set_main_loop(UpdateDrawFrame, 0, 1); @@ -79,7 +79,7 @@ void UpdateDrawFrame(void) ClearBackground(RAYWHITE); - DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); + DrawText("Welcome to raylib web structure!", 220, 200, 20, SKYBLUE); EndDrawing(); //---------------------------------------------------------------------------------- diff --git a/examples/core/core_window_web.png b/examples/core/core_window_web.png new file mode 100644 index 000000000..32886d665 Binary files /dev/null and b/examples/core/core_window_web.png differ diff --git a/examples/examples_list.txt b/examples/examples_list.txt index eda62ee13..196fd15a7 100644 --- a/examples/examples_list.txt +++ b/examples/examples_list.txt @@ -211,9 +211,3 @@ audio;audio_stream_effects;★★★★;4.2;5.0;2022;2025;"Ramon Santamaria";@ra audio;audio_sound_multi;★★☆☆;5.0;5.0;2023;2025;"Jeffery Myers";@JeffM2501 audio;audio_sound_positioning;★★☆☆;5.5;5.5;2025;2025;"Le Juez Victor";@Bigfoot71 audio;audio_spectrum_visualizer;★★★☆;6.0;5.6-dev;2025;2025;"IANN";@meisei4 -others;rlgl_standalone;★★★★;1.6;4.0;2014;2025;"Ramon Santamaria";@raysan5 -others;rlgl_compute_shader;★★★★;4.0;4.0;2021;2025;"Teddy Astie";@tsnake41 -others;easings_testbed;★★★☆;2.5;3.0;2019;2025;"Juan Miguel López";@flashback-fx -others;raylib_opengl_interop;★★★★;3.8;4.0;2021;2025;"Stephan Soller";@arkanis -others;embedded_files_loading;★★☆☆;3.0;3.5;2020;2025;"Kristian Holmgren";@defutura -others;web_basic_window;★☆☆☆;5.6-dev;5.6-dev;2014;2025;"Ramon Santamaria";@raysan5 diff --git a/examples/others/web_basic_window.png b/examples/others/web_basic_window.png deleted file mode 100644 index 346184417..000000000 Binary files a/examples/others/web_basic_window.png and /dev/null differ diff --git a/examples/others/resources/shaders/glsl430/gol.glsl b/examples/shaders/resources/shaders/glsl430/gol.glsl similarity index 100% rename from examples/others/resources/shaders/glsl430/gol.glsl rename to examples/shaders/resources/shaders/glsl430/gol.glsl diff --git a/examples/others/resources/shaders/glsl430/gol_render.glsl b/examples/shaders/resources/shaders/glsl430/gol_render.glsl similarity index 100% rename from examples/others/resources/shaders/glsl430/gol_render.glsl rename to examples/shaders/resources/shaders/glsl430/gol_render.glsl diff --git a/examples/others/resources/shaders/glsl430/gol_transfert.glsl b/examples/shaders/resources/shaders/glsl430/gol_transfert.glsl similarity index 100% rename from examples/others/resources/shaders/glsl430/gol_transfert.glsl rename to examples/shaders/resources/shaders/glsl430/gol_transfert.glsl diff --git a/examples/others/rlgl_compute_shader.c b/examples/shaders/shaders_rlgl_compute.c similarity index 97% rename from examples/others/rlgl_compute_shader.c rename to examples/shaders/shaders_rlgl_compute.c index 14a2b32cd..fd8a4cec7 100644 --- a/examples/others/rlgl_compute_shader.c +++ b/examples/shaders/shaders_rlgl_compute.c @@ -2,8 +2,8 @@ * * raylib [others] example - compute shader * -* NOTE: This example requires raylib OpenGL 4.3 versions for compute shaders support, -* shaders used in this example are #version 430 (OpenGL 4.3) +* WARNING: This example requires raylib compiled with OpenGL 4.3 version for +* compute shaders support, shaders used in this example are #version 430 * * Example complexity rating: [★★★★] 4/4 * @@ -19,9 +19,10 @@ ********************************************************************************************/ #include "raylib.h" + #include "rlgl.h" -#include +#include // Required for: NULL // IMPORTANT: This must match gol*.glsl GOL_WIDTH constant // This must be a multiple of 16 (check golLogic compute dispatch) diff --git a/examples/others/rlgl_compute_shader.png b/examples/shaders/shaders_rlgl_compute.png similarity index 100% rename from examples/others/rlgl_compute_shader.png rename to examples/shaders/shaders_rlgl_compute.png