From d40ad48326fdad0d9fefa81c43f207a3c6304d32 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 19 Feb 2026 17:01:27 +0100 Subject: [PATCH] REVIEWED: examples: moved some examples out of others --- examples/Makefile | 7 ------- .../core_window_web.c} | 12 ++++++------ examples/core/core_window_web.png | Bin 0 -> 15094 bytes examples/examples_list.txt | 6 ------ examples/others/web_basic_window.png | Bin 10297 -> 0 bytes .../resources/shaders/glsl430/gol.glsl | 0 .../resources/shaders/glsl430/gol_render.glsl | 0 .../shaders/glsl430/gol_transfert.glsl | 0 .../shaders_rlgl_compute.c} | 7 ++++--- .../shaders_rlgl_compute.png} | Bin 10 files changed, 10 insertions(+), 22 deletions(-) rename examples/{others/web_basic_window.c => core/core_window_web.c} (93%) create mode 100644 examples/core/core_window_web.png delete mode 100644 examples/others/web_basic_window.png rename examples/{others => shaders}/resources/shaders/glsl430/gol.glsl (100%) rename examples/{others => shaders}/resources/shaders/glsl430/gol_render.glsl (100%) rename examples/{others => shaders}/resources/shaders/glsl430/gol_transfert.glsl (100%) rename examples/{others/rlgl_compute_shader.c => shaders/shaders_rlgl_compute.c} (97%) rename examples/{others/rlgl_compute_shader.png => shaders/shaders_rlgl_compute.png} (100%) 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 0000000000000000000000000000000000000000..32886d665c07f38031ab8ce00696ae2a718d8d95 GIT binary patch literal 15094 zcmeAS@N?(olHy`uVBq!ia0y~yU{+vYU_8XZ1{4ubUVDOp!D_Fki(^PdT=Jh^Utia^ z1sX^(Emp)qlyEREyBHwH+jvnx0xQ8-)p{U5u-U`G)Ii)2=qSoXt^+2 zE{v87qvgVAxqxl_bF_3EEgeTo$I;S}*wQh>dBFz}ab}Kww~LUGInKt5d?zxpaL&&x zh~@y#zTD2>xM0ZQA$xLh$&>sgeKLK0Gn|A>*A+O3%V#|_z3@(U)yr&?_@1zG@I+9v zDvO)7!s5(A6Bak;1S~{Dp5g%`scT@x%<@bdzMlP?cHeDrvI$Fu9Mj^LIVKYkGci0V z96je6dY0|SH+%Df=R`)5G;gD#2-A^yEY2A%vqOs6W>+OG=DB%9rSe{vuRF9#>y-=7K9@1~oxAo*u!RrB znHC!>EM8fK#T#I+0sUfN#cVX|2GFYa#HGapT{3So92UtnH_^{yGyh#_GrtT1s@cqA7GZko39wbEn z5f!2mOn(o5**D>zU==^t+HY|@TbI}deDptY@8ZO&TT4`u9`COIQn%z{6)=3-V!`IB zy&}e3Mh?ap6he8?Sk`ToEiQx_Y^KiTvHU zEq81KUQWF7p=Bw1(q-|LFWYauY`pQs?|qG9PR(Pj{chUp!FDc`h6GnRp5Qw0xy(X=p{7Dn3(=zX2ha$&Sw7%dk@%Z1T$ z0ox$ZXz4gwI*yi(qow0$={Q=OV literal 0 HcmV?d00001 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 346184417a436343a769ba38a9ad9cfda0195181..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10297 zcmeHNdr(tX8ovPwtb*t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%-K7ZG+(dDM{D(2a=9}o*Utph^bPEb!vcbkV8-=02B1ChBx6snl50FuP*bUaZv?NrY`_or)yLGH!O=6sLq6RYbwsBp^@OVb7!oW$U zisZ%7!gdj=*00qYSeTI{_{u@N1?ul`>0m{S zyWYHg>-B$PJMZ>B_MmGf?zTN~R4GK^)j!Q7Rv=hg4q9#FbrUeBf#;lw-WpcSBh-(f zmQo3(7Ca5oQLK2QW;bLgU`vXn!(O(>b~VGQG&;*ApgCZ`MYkMr*;?3FC9QVnfTg)% z;L{Z9hF}qkCiuAA<~-|(Y=k)2V;JHt@ zJ&wK64pEI?BSRsv`u`|kV{LG={CFD##b>q2XDr$JLaQZ3(aNPW^l*Vn8c;h>Hnthl zN*UqsoNVMeWm{vwHG5S-n`XvhsDPveS|nxwfo+hqVHiVImP8)8a^9f7^3tFmut4%m zWa>(l0pTNhqbj0*3g*$FGDJV%Y*fXj=OH$R$P5p~m|~gr{jP@ltLJM&UVW%v2V7NX z?~)n)c?d#v%o#Y4#@dci4zv=qTPr>UGeZ2E4AMqbgv+M9k;Zev2-G%t zuT1J&rz;!VhLLJrQzN4WHli+Dbr-B-P)p2QH$>US5TRhN?BsT#)C5t+&23skwfrU~ zSoK&7Tb8p)X{?o!KC^z&p2jIe++T*Y+M`Vkx*4trVI$VDbUn4-0vlz~Ny0M4h7)Xl zt_jm*-`>8aU}Z zHz<6`kr(%mD2XQU_fr$b+OgZ*%h2g^WVI7ER;YB4{E2RpqdVtRS${IdAuos|vhOWI zs{5KWB2}l#r{|CQDT9nGa@$i1MkyWChEE~4 zn~sLQzQh-j-2?KG87-0Ui*@X-_OSKgT|hnlq=~stRR~qsW`o5YqL=}e#_T{aecw{Wxhm;pAY +#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