Skip to content

Commit 718a841

Browse files
committed
REXM: Update examples
1 parent 8670e6e commit 718a841

File tree

8 files changed

+613
-14
lines changed

8 files changed

+613
-14
lines changed

examples/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ OTHERS = \
682682
others/easings_testbed \
683683
others/embedded_files_loading \
684684
others/raylib_opengl_interop \
685-
others/raymath_vector_angle \
686685
others/rlgl_compute_shader \
687-
others/rlgl_standalone
686+
others/rlgl_standalone \
687+
others/web_basic_window
688688
#EXAMPLES_LIST_END
689689

690690
# Define processes to execute

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You may find it easier to use than other toolchains, especially when it comes to
1717
- `zig build [module]` to compile all examples for a module (e.g. `zig build core`)
1818
- `zig build [example]` to compile _and run_ a particular example (e.g. `zig build core_basic_window`)
1919

20-
## EXAMPLES COLLECTION [TOTAL: 166]
20+
## EXAMPLES COLLECTION [TOTAL: 172]
2121

2222
### category: core [40]
2323

@@ -245,7 +245,7 @@ Examples showing raylib misc functionality that does not fit in other categories
245245
| [easings_testbed](others/easings_testbed.c) | <img src="others/easings_testbed.png" alt="easings_testbed" width="80"> | ⭐⭐⭐☆ | 2.5 | 3.0 | [Juan Miguel López](https://github.com/flashback-fx) |
246246
| [raylib_opengl_interop](others/raylib_opengl_interop.c) | <img src="others/raylib_opengl_interop.png" alt="raylib_opengl_interop" width="80"> | ⭐⭐⭐⭐️ | 3.8 | 4.0 | [Stephan Soller](https://github.com/arkanis) |
247247
| [embedded_files_loading](others/embedded_files_loading.c) | <img src="others/embedded_files_loading.png" alt="embedded_files_loading" width="80"> | ⭐⭐☆☆ | 3.0 | 3.5 | [Kristian Holmgren](https://github.com/defutura) |
248-
| [raymath_vector_angle](others/raymath_vector_angle.c) | <img src="others/raymath_vector_angle.png" alt="raymath_vector_angle" width="80"> |⭐☆☆ | 1.0 | 5.0 | [Ramon Santamaria](https://github.com/raysan5) |
248+
| [web_basic_window](others/web_basic_window.c) | <img src="others/web_basic_window.png" alt="web_basic_window" width="80"> |☆☆☆ | 5.6-dev | 5.6-dev | [Ramon Santamaria](https://github.com/raysan5) |
249249

250250
Some example missing? As always, contributions are welcome, feel free to send new examples!
251251
Here is an[examples template](examples_template.c) with instructions to start with!

examples/examples_list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ others;rlgl_compute_shader;★★★★;4.0;4.0;2021;2025;"Teddy Astie";@tsnake4
178178
others;easings_testbed;★★★☆;2.5;3.0;2019;2025;"Juan Miguel López";@flashback-fx
179179
others;raylib_opengl_interop;★★★★;3.8;4.0;2021;2025;"Stephan Soller";@arkanis
180180
others;embedded_files_loading;★★☆☆;3.0;3.5;2020;2025;"Kristian Holmgren";@defutura
181-
others;web_basic_window;☆☆☆;5.6-dev;5.6-dev;"Ramon Santamaria";@raysan5
181+
others;web_basic_window;☆☆☆;5.6-dev;5.6-dev;2014;2025;"Ramon Santamaria";@raysan5

examples/others/web_basic_window.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
/*******************************************************************************************
22
*
3-
* raylib [others] example - Basic window (adapted for HTML5 platform)
3+
* raylib [others] example - basic window
44
*
5-
* This example is prepared to compile for PLATFORM_WEB and PLATFORM_DESKTOP
6-
* As you will notice, code structure is slightly different to the other examples...
7-
* To compile it for PLATFORM_WEB just uncomment #define PLATFORM_WEB at beginning
5+
* This example has been adapted to compile for PLATFORM_WEB and PLATFORM_DESKTOP
6+
* As you will notice, code structure is slightly different to the other examples
87
*
9-
* This example has been created using raylib 1.3 (www.raylib.com)
10-
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
8+
* Example complexity rating: [★☆☆☆] 1/4
119
*
12-
* Copyright (c) 2015 Ramon Santamaria (@raysan5)
10+
* Example originally created with raylib 1.3, last time updated with raylib 5.5
11+
*
12+
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
13+
* BSD-like license that allows static linking with closed source software
14+
*
15+
* Copyright (c) 2015-2025 Ramon Santamaria (@raysan5)
1316
*
1417
********************************************************************************************/
1518

projects/VS2022/examples/web_basic_window.vcxproj

Lines changed: 569 additions & 0 deletions
Large diffs are not rendered by default.

projects/VS2022/raylib.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shaders_ascii_rendering", "
363363
EndProject
364364
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "core_monitor_change", "examples\core_monitor_change.vcxproj", "{52BA9067-A5FC-4CE8-82AD-7204ECFDEF9F}"
365365
EndProject
366+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "web_basic_window", "examples\web_basic_window.vcxproj", "{6B1A933E-71B8-4C1F-9E79-02D98830E671}"
367+
EndProject
366368
Global
367369
GlobalSection(SolutionConfigurationPlatforms) = preSolution
368370
Debug.DLL|ARM64 = Debug.DLL|ARM64
@@ -4481,6 +4483,30 @@ Global
44814483
{52BA9067-A5FC-4CE8-82AD-7204ECFDEF9F}.Release|x64.Build.0 = Release|x64
44824484
{52BA9067-A5FC-4CE8-82AD-7204ECFDEF9F}.Release|x86.ActiveCfg = Release|Win32
44834485
{52BA9067-A5FC-4CE8-82AD-7204ECFDEF9F}.Release|x86.Build.0 = Release|Win32
4486+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|ARM64.ActiveCfg = Debug.DLL|ARM64
4487+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|ARM64.Build.0 = Debug.DLL|ARM64
4488+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|x64.ActiveCfg = Debug.DLL|x64
4489+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|x64.Build.0 = Debug.DLL|x64
4490+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|x86.ActiveCfg = Debug.DLL|Win32
4491+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug.DLL|x86.Build.0 = Debug.DLL|Win32
4492+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|ARM64.ActiveCfg = Debug|ARM64
4493+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|ARM64.Build.0 = Debug|ARM64
4494+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|x64.ActiveCfg = Debug|x64
4495+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|x64.Build.0 = Debug|x64
4496+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|x86.ActiveCfg = Debug|Win32
4497+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Debug|x86.Build.0 = Debug|Win32
4498+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|ARM64.ActiveCfg = Release.DLL|ARM64
4499+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|ARM64.Build.0 = Release.DLL|ARM64
4500+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|x64.ActiveCfg = Release.DLL|x64
4501+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|x64.Build.0 = Release.DLL|x64
4502+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|x86.ActiveCfg = Release.DLL|Win32
4503+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release.DLL|x86.Build.0 = Release.DLL|Win32
4504+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|ARM64.ActiveCfg = Release|ARM64
4505+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|ARM64.Build.0 = Release|ARM64
4506+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|x64.ActiveCfg = Release|x64
4507+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|x64.Build.0 = Release|x64
4508+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|x86.ActiveCfg = Release|Win32
4509+
{6B1A933E-71B8-4C1F-9E79-02D98830E671}.Release|x86.Build.0 = Release|Win32
44844510
EndGlobalSection
44854511
GlobalSection(SolutionProperties) = preSolution
44864512
HideSolutionNode = FALSE

tools/rexm/examples_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Example elements validated:
4444
| core_window_flags |||||||||||||||
4545
| core_window_letterbox |||||||||||||||
4646
| core_window_should_close |||||||||||||||
47+
| core_monitor_change |||||||||||||||
4748
| core_custom_logging |||||||||||||||
4849
| core_drop_files |||||||||||||||
4950
| core_random_values |||||||||||||||
@@ -190,4 +191,4 @@ Example elements validated:
190191
| easings_testbed |||||||||||||||
191192
| raylib_opengl_interop |||||||||||||||
192193
| embedded_files_loading |||||||||||||||
193-
| raymath_vector_angle ||| | | ||||| |||||
194+
| web_basic_window ||| | | ||||| |||||

tools/rexm/examples_report_issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ Example elements validated:
2525
| easings_testbed |||||||||||||||
2626
| raylib_opengl_interop |||||||||||||||
2727
| embedded_files_loading |||||||||||||||
28-
| raymath_vector_angle ||| | | ||||| |||||
28+
| web_basic_window ||| | | ||||| |||||

0 commit comments

Comments
 (0)