Ray
4cf4c6645e
REXM: RENAME: example: shaders_hybrid_render --> shaders_hybrid_rendering
2025-09-08 20:30:45 +02:00
Ray
14bef50464
REXM: RENAME: example: shaders_deferred_render --> shaders_deferred_rendering
2025-09-08 20:30:26 +02:00
Ray
ab3e99fd30
REXM: RENAME: example: models_cubicmap --> models_cubicmap_rendering
2025-09-08 20:30:07 +02:00
Ray
463d069eff
REXM: RENAME: example: models_heightmap --> models_heightmap_rendering
2025-09-08 20:29:53 +02:00
Ray
b67e7ffc44
REXM: RENAME: example: shapes_draw_circle_sector --> shapes_circle_sector_drawing
2025-09-08 20:28:17 +02:00
Ray
16fbca2e8b
REXM: RENAME: example: shapes_draw_rectangle_rounded --> shapes_rounded_rectangle_drawing
2025-09-08 20:27:00 +02:00
Ray
266b8efbd6
REXM: Reviewed examples inconsistencies
2025-09-07 12:05:11 +02:00
Ray
688cf680c0
Update examples_list.txt
2025-09-07 12:03:16 +02:00
Ray
25f4e544d1
REXM: UPDATED: Examples source code header info, aligned with name
2025-09-07 12:01:51 +02:00
Ray
8544020023
Update required files for example rename
2025-09-07 11:47:58 +02:00
Ray
e1dfb4cd4e
Update shaders_normal_map.c
2025-09-07 11:44:03 +02:00
Ray
1bbd4c3566
REXM: RENAME: example: shapes_draw_ring --> shapes_ring_drawing
2025-09-07 11:19:29 +02:00
Ray
c0234e5e3d
REXM: RENAME: example: textures_sprite_anim --> textures_sprite_animation
2025-09-07 11:14:56 +02:00
Ray
2d19abb2cf
REXM: REVIEWED: Examples header info inconsistencies
2025-09-07 11:04:00 +02:00
Ray
e5cef3c0d8
REXM: Reviewed examples source code headers metadata
2025-09-07 10:46:51 +02:00
Ray
eb816898e5
Revert "Added creation-review years to examples"
...
This reverts commit b5e25916fc .
2025-09-05 23:02:06 +02:00
Ray
424cdebda5
Updated examples_list.txt to include example year created/reviewed
...
Reviewed star used, aligned with empty star and examples header
2025-09-05 14:04:28 +02:00
Ray
b5e25916fc
Added creation-review years to examples
2025-09-05 11:25:24 +02:00
Ray
47bdfb91a2
Update README.md
2025-09-05 10:57:25 +02:00
Ray
a51cb7fe30
REXM: Updated some examples inconsistencies
2025-09-04 19:15:37 +02:00
Ray
7646d08751
Updated some examples with inconsistencies
2025-09-04 18:57:00 +02:00
Ray
d418704c0b
REXM: Update examples collection
2025-09-04 16:17:23 +02:00
Ray
293477e2b5
Reorganized examples list
2025-09-04 16:05:54 +02:00
Ray
6d7dd43c13
Update core_input_gestures_testbed.c
2025-09-04 16:05:38 +02:00
Ray
e21093d434
REXM: RENAME: example: core_input_gestures_web --> core_input_gestures_testbed
2025-09-04 15:59:53 +02:00
Ray
c17f82a78c
REMOVED: core_basic_window_web
...
The example is not following examples conventions and it will be moved to `others` with a new name
2025-09-04 15:43:54 +02:00
Ray
d97e0a8ac7
REXM: RENAME: example: shaders_texture_drawing --> shaders_texture_rendering
2025-09-04 11:27:32 +02:00
Ray
41dee9e9f9
REXM: RENAME: example: shaders_fog --> shaders_fog_rendering
2025-09-04 11:12:01 +02:00
Ray
3cbe911613
REXM: RENAME: example: models_billboard --> models_billboard_rendering
2025-09-04 11:04:00 +02:00
Ray
b17936de22
REXM: RENAME: example: models_billboard --> models_billboard_rendering
2025-09-04 10:55:48 +02:00
Ray
dd0587e12a
Update shaders_texture_drawing.c
2025-09-04 10:33:22 +02:00
Ray
2e376c6f5b
Update shaders_spotlight.c
2025-09-04 10:33:14 +02:00
Ray
2a295210fb
Update shaders_spotlight.c
2025-09-03 19:58:38 +02:00
Ray
a7e62e73d8
REXM: REMOVE: example: core_loading_thread
...
This example was POSIX only and had some special requirements for web, it made it more difficult to be managed from collection standard examples format.
It will be re-added in the `others` category, that is not processed for web.
2025-09-03 19:00:33 +02:00
Ray
5cbe013273
REXM: RENAME: example: models_skybox --> models_skybox_rendering
2025-09-03 18:48:20 +02:00
Ray
d8ee8a45c4
REXM: RENAME: example: textures_draw_tiled --> textures_tiled_drawing
2025-09-03 18:45:50 +02:00
Ray
33327760f1
REXM: RENAME: example: text_draw_3d --> text_3d_drawing
2025-09-03 18:43:17 +02:00
Ray
785ad4015c
REXM: RENAME: example: textures_polygon --> textures_polygon_drawing
2025-09-03 18:40:53 +02:00
Ray
cadd28e5a0
REXM: RENAME: example: text_raylib_fonts -> text_sprite_fonts
2025-09-03 18:33:33 +02:00
Ray
64d6a90d48
REXM: RENAME: example: text_unicode --> text_unicode_emojis
2025-09-03 18:14:47 +02:00
Ray
c579eef4b7
REVIEWED: Examples section comments, for better organization and consistency
2025-09-03 10:40:31 +02:00
Ray
1dfff2252d
rexm update
2025-09-02 18:44:27 +02:00
Ray
cf61a8b888
REXM: Update examples report
2025-09-02 18:38:20 +02:00
Ray
9fab2c8a13
REVIEWED: example: text_unicode_ranges
2025-09-02 18:34:58 +02:00
Ray
0fd5a1a3f5
REDESIGNED: example: text_unicode_ranges
2025-09-02 17:47:25 +02:00
Ray
b16d14f5ed
Update text_font_sdf.c
2025-09-02 17:45:52 +02:00
Ray
aa475b1046
REVIEWED: Code sections description for consistency
2025-09-02 12:34:04 +02:00
Ray
8b3c68f8b5
Update core_random_sequence.c
2025-09-02 12:18:19 +02:00
Ray
b6ae380260
REVIEWED: Examples comments, consistent code sections
2025-09-02 12:10:16 +02:00
Ray
864459cbd2
Update core_3d_camera_fps.c
2025-09-01 20:59:37 +02:00
Ray
e18d167c8f
REVIEWED: New examples added renaming, avoid duplicated .sln GUIDs
2025-09-01 20:47:59 +02:00
JohnnyCena123
0e73e0ea64
reviewed ALL non-external files to follow raylib's convention of no spaces around / or * ( #5153 )
2025-08-29 14:53:16 +02:00
Hamza RAHAL
507c85900f
fix: [digital_clock] minute hand doesn't appear ( #5151 )
2025-08-28 22:32:41 +02:00
JohnnyCena123
4a4997c615
fix unnecessary warnings in some files ( #5152 )
2025-08-28 22:28:56 +02:00
Ray
42abcb9492
Updated examples init window title
2025-08-26 00:36:32 +02:00
Ray
a72b4b177b
Updated examples short description
2025-08-26 00:32:24 +02:00
Ray
60ac8f2a86
Renamed example
2025-08-25 21:11:37 +02:00
Ray
47db1da9ea
REXM: RENAMED: example: core_3d_fps_controller to core_3d_camera_fps
2025-08-25 20:58:09 +02:00
Ray
8b68d548c9
Reviewing some examples titles
2025-08-25 20:57:18 +02:00
Ray
f9af011965
Update core_window_letterbox.c
2025-08-25 20:56:05 +02:00
Ray
4d0c3affaa
REXM: Update examples and lists
2025-08-24 10:53:47 +02:00
Maicon Santana
69021939e6
fix write_depth.fs glsl120
2025-08-23 13:06:56 +01:00
Maicon Santana
c6d7694286
set glsl100 back to 100
2025-08-23 10:17:11 +01:00
Ray
500494f791
Update core_3d_fps_controller.c
2025-08-23 00:02:19 +02:00
feive7
8b0cbb6f47
Clamp camera pitch
2025-08-21 11:10:13 -07:00
Maicon Santana
238163c6ca
swap local variable isCursorHidden to use new method IsCursorHidden()
2025-08-21 11:31:40 +01:00
Ray
c3c33e9654
Merge pull request #5125 from JohnnyCena123/missing-vox-shaders
...
add missing shaders for glsl100, glsl120
2025-08-20 12:34:05 +02:00
Johnny Cena
a99649b455
remove unneeded checks
2025-08-20 12:18:51 +02:00
Johnny Cena
df200b942c
add versions to new shaders
2025-08-20 12:16:57 +02:00
Johnny Cena
cb05945e76
add missing shaders
2025-08-20 12:09:30 +02:00
Ray
0658abc64c
Update text_raylib_fonts.c
2025-08-19 13:22:15 +02:00
Ray
8ba4ff2143
Renamed directory for sprite fonts
2025-08-19 13:22:04 +02:00
Ray
25d00130a8
REVIEWED: example: text_unicode_ranges
2025-08-19 13:17:50 +02:00
Ray
291042352b
Merge pull request #4886 from GuvaCode/master
...
[examples] Possible improvements for `text_codepoints_loading`, adding ranges
2025-08-19 12:00:25 +02:00
Ray
a338b9694c
Update build_example_web.bat
2025-08-19 10:36:31 +02:00
Ray
595befec40
Update models_mesh_picking.c
2025-08-18 20:37:07 +02:00
Ray
0a513e6fbe
Comment unused script instructions...
2025-08-18 15:04:50 +02:00
Ray
a8dfd9db76
REXM: RENAMED: shaders_normalmap --> shaders_normal_map
2025-08-18 14:35:04 +02:00
Ray
6da0a180e6
REXM: Using Makefile.Web for specific web versions generation, only with required resources for every example
2025-08-17 21:30:16 +02:00
Ray
afdc7972d6
REXM: Automatic validation and update of examples
2025-08-14 21:07:10 +02:00
Ray
7037f131dc
REVIEWED: example: core_3d_fps_controller
2025-08-14 20:37:52 +02:00
Ray
a9970484f3
Remove trailing spaces
2025-08-14 20:37:18 +02:00
Ray
ddebf5d7ac
Update Makefile.Web
2025-08-13 12:34:55 +02:00
Ray
ef81145776
Update examples_list.txt
2025-08-13 11:35:23 +02:00
Ray
13e384ce71
Merge pull request #5004 from nezvers/example_quake_controller
...
[examples] New example: `core_3d_fps_controller`
2025-08-12 09:54:23 +02:00
Ray
503e6d8bb5
Merge branch 'master' into julia_set
2025-08-11 20:26:16 +02:00
Ray
9b598f6bcf
REVIEWED: Shaders formating to follow raylib code conventions
2025-08-11 20:22:31 +02:00
Ray
8dae39fbda
ADDED: Missing GLSL120 shaders
2025-08-11 20:22:02 +02:00
Maicon Santana
00f7121b1c
Increasing maxInterations glsl100 to 255 to match with glsl330 and add glsl120
2025-08-11 18:16:00 +01:00
Ray
570082deba
WARNING: **NEW** raylib code CONVENTION: Comments do not end with '.'
2025-08-07 18:23:20 +02:00
Ray
6792e6e2dd
Updated required files for new example: shaders_normalmap
2025-08-07 17:50:18 +02:00
Ray
2365ac8def
REVIEWED: Example shaders_normalmap #5032
2025-08-07 17:31:11 +02:00
Ray
54473e2c2b
REVIEWED: Example shaders_normalmap, it crashes #5032
2025-08-07 17:28:25 +02:00
Ray
47d1cc200d
Merge branch 'master' of https://github.com/raysan5/raylib
2025-08-07 17:19:39 +02:00
Ray
8da4887c2d
Update examples_list.txt
2025-08-07 17:19:27 +02:00
Ray
a06962ee38
Merge branch 'master' into normalmap_example
2025-08-07 17:17:12 +02:00
Ray
f0889a74fe
EXAMPLES: Format tweaks
2025-08-07 17:08:22 +02:00
Ray
9f07cfe0b7
Update textures_image_kernel.c
2025-08-07 17:08:02 +02:00
Ray
f02c7fca8a
Update shapes_double_pendulum.c
2025-08-07 17:07:45 +02:00
Ray
d45b00b191
Update shaders_rounded_rectangle.c
2025-08-07 17:07:26 +02:00
Ray
7e597dd574
Update rlgl_compute_shader.c
2025-08-07 17:07:10 +02:00
Ray
9003cd32ba
Update models_rlgl_solar_system.c
2025-08-07 17:06:50 +02:00
Ray
366887b863
Update models_loading_vox.c
2025-08-07 17:06:39 +02:00
Ray
64fbf07e7b
Update audio_sound_multi.c
2025-08-07 17:06:11 +02:00
Ray
5d4a233f52
Update examples_template.c
2025-08-07 17:05:57 +02:00
Ray
fd79b44920
Create distortion.fs
2025-08-07 17:05:50 +02:00
Ray
5eacc872c7
Update README.md
2025-08-07 17:05:45 +02:00
Ray
1fadc67fb3
ADDED: Missing resources on some examples
2025-08-07 17:05:25 +02:00
Ray
533f06109d
Update README.md
2025-08-06 18:23:42 +02:00
Ray
f64d405ef3
Update Makefile.Web
2025-08-06 18:18:39 +02:00
Ray
c3cad65d30
Update examples_list.txt
2025-08-06 14:02:51 +02:00
Ray
1f2b5d6282
Update examples_template.c
2025-08-05 10:04:54 +02:00
Ray
b683af298c
Update examples_template.c
2025-08-05 09:40:01 +02:00
Ray
945f1410d2
MOVED: rexm to tools directory
2025-08-04 23:24:43 +02:00
Ray
f5e95029b1
Update rexm.c
2025-08-04 20:44:22 +02:00
Ray
cdfb9d7a0b
Added some notes for example collection validation
2025-08-04 19:29:28 +02:00
Ray
a436d935f1
Update README.md
2025-08-04 19:28:07 +02:00
Ray
1293461f5e
REXM: Some code reviews, README.md generation improvements
2025-08-04 19:27:48 +02:00
Ray
a457ab154e
ADDED: Example resources for automatic removal
...
WARNING: Some of those resources could be shared by other examples in the category so for now we leave removed manual by users...
2025-08-04 18:11:57 +02:00
Ray
1f5fec851d
UPDATE: Added Makefile.Web per-example target generation including used resources
2025-08-04 17:52:22 +02:00
Ray
bc0f93baea
UPDATE: Added resources scanning from examples for automated copying
2025-08-04 17:51:48 +02:00
Ray
e130775e0d
Updated for resources scanning system
2025-08-04 14:13:17 +02:00
Ray
80dd72ce12
REVIEWED: For automation simplification
2025-08-04 13:23:57 +02:00
Ray
d8952958db
Update Makefile
2025-08-04 13:23:14 +02:00
Ray
72de562542
REVIEWED: Examples for automation processes
2025-08-04 13:23:04 +02:00
Ray
d43470a3d4
Minor comment reviews
2025-08-03 23:49:52 +02:00
Ray
d182ae7837
UPDATED: Support example removal
2025-08-03 23:32:54 +02:00
Ray
b11d089202
UPDATED: Implementing file rename requirements
...
Moved files update from collection to separate function
2025-08-03 22:56:15 +02:00
Ray
d194b8d503
ADDED: Some security checks to verify examples categories provided
2025-08-03 21:20:35 +02:00
Ray
8f8a5ada60
REVIEWED: Make sure environment is set in same process and not a child one
2025-08-03 21:19:55 +02:00
Ray
c146be16cb
Update rexm.c
2025-08-03 09:43:38 +02:00
Ray
6ddc9251c2
UPDATE: README.md example addition working
2025-08-03 01:18:19 +02:00
Ray
73baaeeb2e
REVIEWED: LoadTextLines()
2025-08-03 01:17:50 +02:00
Ray
1948453394
Update README.md
2025-08-02 20:11:31 +02:00
Ray
b044b52955
UPDATED: examples.js example addition working
2025-08-02 19:43:27 +02:00
Ray
528ad4964d
UPDATE: Makefile example addition working
2025-08-02 19:21:36 +02:00
Ray
e76c5f7d64
Update rexm.c
2025-08-02 18:11:30 +02:00
Ray
e01f3f158e
Remove some testing code
2025-08-02 18:01:23 +02:00
Ray
c60763d19e
UPDATED: LoadExamplesData() to support filtering and sorting
2025-08-02 18:00:41 +02:00
Ray
159a9eac4a
Update build_example_web.bat
2025-08-02 17:58:44 +02:00
Ray
b01c8a7a90
UPDATE: Implementing examples commands -WIP-
2025-08-02 00:36:17 +02:00
Ray
9477838193
ADDED: Some useful functions for examples info loading, using examples_list
2025-08-01 19:40:44 +02:00
Ray
a872de82ed
Create examples_list, to be used by rexm or other tools for reference
...
NOTE: This file should be the source of truth for raylib examples collection, everything will be generated using this file as primary reference.
2025-08-01 19:39:30 +02:00
Ray
10079e4e65
Reviewed minor formating issues
2025-08-01 18:58:24 +02:00
Ray
6b0174d034
REVIEWED: Examples Makefile to locate examples list: #EXAMPLES_LIST_*
2025-08-01 18:58:05 +02:00
Ray
9fa53aac6f
Update examples_template.c
2025-08-01 18:56:54 +02:00
lpow100
65e3d67eb9
Merge branch 'master' of https://github.com/raysan5/raylib
2025-07-31 16:16:10 -07:00
lpow100
58e3c8604a
Added setup for the rename command (NOT TESTED)
2025-07-31 16:16:07 -07:00
Ray
e0b58b7eee
Update rexm.c
2025-08-01 01:08:31 +02:00
Ray
d88f27f08d
NEW: ADDED: rexm - A simple command-line tool to manage raylib examples -WIP-
2025-08-01 00:30:01 +02:00
Ray
4b2654f851
Create examples_template.png
2025-07-31 23:55:50 +02:00
Ray
968385b5f4
Update examples_template.c
2025-07-31 23:55:46 +02:00
Ray
38ff5d00a0
Create build_example_web.bat
2025-07-31 23:55:26 +02:00
RANDRIA Luca
b273ba930b
Add screenshot for core_basic_window_web
...
The veritable screenshot is this
2025-07-31 01:05:00 +03:00
RANDRIA Luca
e662ac80d5
Merge branch 'raysan5:master' into master
2025-07-30 17:37:15 +03:00
Ray
414235dd17
Update shaders_multi_sample2d.c
2025-07-30 16:06:43 +02:00
RANDRIA Luca
37104195b4
add screenshot core_basic_window_web
...
There are no screenshot for this and the alt is seen
2025-07-30 16:54:06 +03:00
lepasona
b230720842
example core_input_gamepad.c: fix hardcoded gamepad 0
2025-07-27 14:35:38 +00:00
Joecheong2006
10fadd9185
Replaced scalar to float
2025-07-22 11:59:46 -07:00
Joecheong2006
b6ae5af4e3
Removed redefined RAD and DEG
2025-07-22 11:57:16 -07:00
Joecheong2006
8a0ab163d3
Changed to 4 spaces
2025-07-22 11:50:48 -07:00
JoeCheong
f3854cb406
Fixed typo
2025-07-22 11:39:24 -07:00
Joecheong2006
f1714a6234
[examples]: New shapes example - double pendulum
2025-07-21 14:59:51 -07:00
PanicTitan
9e908e4a76
Update core_custom_frame_control.c to work properly on web
2025-07-14 00:27:56 -03:00
sir-irk
32026ca78b
fix preview image file name
2025-07-08 06:34:25 -05:00
sir-irk
86d2db2aa9
fix typo on UI and preview image
2025-07-08 05:51:14 -05:00
sir-irk
9a578dbce0
fix formatting
2025-07-08 05:47:11 -05:00
sir-irk
a94feef6d0
update readme
2025-07-08 05:36:39 -05:00
sir-irk
897a8fbc9f
adding preview image
2025-07-08 05:28:15 -05:00
sir-irk
510dc763e9
adding normal map example
2025-07-08 05:05:30 -05:00
Jordan Zedeck
e91a3697ff
Fixed typo
2025-07-06 01:59:03 -04:00
sir-irk
ed509193d9
remving w multiply on the tangent itself
2025-07-01 15:30:50 -05:00
sir-irk
f86295732a
fixing shader tangents to be vec4
2025-07-01 15:18:11 -05:00
Agnis Aldiņš "NeZvērs
ed022e89e5
fix preview crop
2025-06-23 16:22:14 +03:00
Agnis Aldiņš "NeZvērs
f6b7168ed4
Add preview image
2025-06-23 16:06:46 +03:00
Agnis Aldiņš "NeZvērs
fa9653d179
Fix function call
2025-06-23 13:50:24 +03:00
Agnis Aldiņš "NeZvērs
fca2317640
remove //#define PLATFORM_WEB
2025-06-23 13:44:50 +03:00
Agnis Aldiņš "NeZvērs
a2cf878190
cleanup variable shadowing
2025-06-23 13:43:38 +03:00
Agnis Aldiņš "NeZvērs
4233544670
Update core_3d_fps_controller.c
2025-06-23 13:32:08 +03:00
Agnis Aldiņš "NeZvērs
4d5a56a5f8
change game's resolution
2025-06-23 13:15:14 +03:00
Agnis Aldiņš "NeZvērs
eee9dd8c94
Example: core_3d_fps_controller
...
Quake like camera animations and strafe jump movement
2025-06-23 13:03:35 +03:00
Ray
8a3a8ee8e3
Update shapes_digital_clock.c
2025-06-07 20:14:10 +02:00
Ray
5f497d0687
REVIEWED: shapes_digital_clock example
2025-06-03 20:42:27 +02:00
Hamza RAHAL
3f228f4594
[examples] : adding new fancy clock
2025-06-03 11:40:44 +02:00
Meowster
6d5aedbd38
Add DrawEllipseV and DrawEllipseLinesV
2025-05-29 07:10:52 -04:00
Pivok
0ffc8c517f
Pbr example fix
2025-05-17 12:32:17 +02:00
Daniel Abbott
696f225f29
Update audio_sound_positioning.c
...
Calculate `right` Vector3 for correct audio stereo positioning.
2025-04-30 10:12:35 -06:00
Z-AKey
12bf30ce04
Merge branch 'raysan5:master' into master
2025-04-22 16:49:12 -04:00
Zean Key
77f31178ed
fixed text_draw_3d
2025-04-22 16:48:50 -04:00
Ray
cf1713e6dd
REVIEWED: VS2022 projects use a custom resource file...
...
...instead of relying in src/raylib provided one. #4900
2025-04-18 10:25:40 +02:00
Zean Key
869ae8bbd2
[example] fix text size in text_draw_3d
2025-04-17 14:40:36 -04:00
Jeffery Myers
eb3d96a36a
Fix cast warnings in examples.
2025-04-16 18:23:55 -07:00
Ray
cc5739a6d7
REVIEWED: Some PRs formating
2025-04-13 20:55:38 +02:00
Ray
ab901c58bb
Merge pull request #4881 from Bigfoot71/raylib-sound-positioning
...
[examples] Add 3D sound spatialization example
2025-04-12 20:55:29 +02:00
Gunko Vadim
53cbd3cb11
rename
2025-04-12 07:10:14 +05:00
Gunko Vadim
0d86084709
Update text_unicode_font_example.c
...
The creation of the array has been rewritten, the size of the example has been reduced
2025-04-12 07:07:14 +05:00
Gunko Vadim
4184a5b251
Update text_unicode_font_example.c
2025-04-11 18:43:12 +05:00
Gunko Vadim
5d7e8010a5
example unicode font
...
A review of the code is required. Since I'm not sure what's written correctly at all.
2025-04-11 14:39:06 +05:00
Bigfoot71
59dc53d20e
update readme
2025-04-09 18:09:50 +02:00
Bigfoot71
d5733ffb9a
update example makefiles
2025-04-09 18:09:32 +02:00
Ray
a5639bb186
Merge pull request #4861 from luis605/view-depth-texture
...
[examples] Added new shader example: `shader_depth_texture`
2025-04-09 17:57:20 +02:00
Bigfoot71
a554ef339b
add audio_sound_positionning example
2025-04-09 17:27:45 +02:00
luis605
4960cc74e0
[examples] Reviewed shader view depth
2025-04-04 22:41:34 +01:00
Ray
ceb1a5ea2b
REVIEWED: Temporaly fix for issue #4874
2025-04-03 18:31:05 +02:00
Jonathan Marler
f19d4c71ab
core_window_flags example: add borderless windowed toggle
2025-03-31 10:23:34 -06:00
Jonathan Marler
336fd78f74
Add core_highdpi example
...
This example enables HIGHDPI and renders a scale showing how the logical
size compares to the pixel size of the window.
2025-03-28 16:48:21 -06:00
Ray
61aea2495a
Merge pull request #4863 from marler8997/fixImmediateRestore
...
Prevent immediate window restore from minimize in core_window_flags
2025-03-28 18:02:12 +01:00
Jonathan Marler
00fb09cebf
Prevent immediate window restore from minimize in core_window_flags
...
The core_window_flags example automatically restores the window from
being minimized after 3 seconds. However, it only resets the frameCounter
if the window is minimized through the app from inputting KEY_N. This
means if you miminize the window by other means (like pressing the minimize
button) then the example will immediately restore the window because the
frame counter wasn't reset. I've fixed this by setting the frameCounter
back to 0 once it's expired. I also added a note in the UI that the example
automatically restores the window so it's not a surprise.
2025-03-26 20:02:03 -06:00
Jonathan Marler
8749ba9ebf
Uncomment SetTargetFPS in core_window_flags
...
I think this line was accidently commented out in this commit:
3d1ae3500c
The FPS limit is needed to get the desired wait time for the "hide window"
test, which uses the frame counter to hide the window for 3 seconds. On
my machine without this limit it runs at over 1000 FPS and it appears
like the hide window state is broken.
I also added some text that tells the user that it only hides the window
for 3 seconds so they're not surprised when the window automatically
reappears.
2025-03-26 16:35:31 -06:00
luis605
8ec52e3b25
Added example to build system
2025-03-26 19:47:45 +00:00
luis605
eeda7a4b82
Added shaders_view_depth example to the build system
2025-03-26 17:41:04 +00:00
luis605
e08fc8ab80
Added new example - [shader] render depth texture
2025-03-26 16:59:05 +00:00
Jonathan Marler
611c43719f
Avoid divide by 0 in core_custom_frame_control example
2025-03-26 10:58:59 -06:00
Jonathan Marler
ac17de5074
[build] remove examples/build.zig, incorporate into main build.zig
...
Removes the second build.zig in the examples directory and incorporates it
into the main build.zig. This gives the zig build system the data needed to
know if the raylib library needs to be rebuilt when running any example.
2025-03-25 11:05:59 -06:00
Fabrizio Pietrucci
e140aca1b5
Increase zoom factor in core_2d_camera.c
...
This compensate for slower zoom speed due to log scaling
2025-03-19 20:19:19 +01:00
Fabrizio Pietrucci
8b84c999d2
Use logarithmic zoom scaling in 2d camera zoom examples
2025-03-19 19:48:04 +01:00
Aidon
513753c394
Converting int to char
...
Fixes warning: narrowing conversion caused by trying to convert int to unsigned char
2025-03-13 21:50:20 -03:00
Amy Wilder
61a026f7ef
[examples] Reorganize some conditions to fix overlap bugs ( #4829 )
...
* Reorganize some conditions to fix overlap bugs
* Fix edge case where control point selection outlives mouse down
2025-03-09 11:40:24 +01:00
sleeptightAnsiC
f430d72a8c
[examples] fix: use quotation marks when including raylib.h ( #4821 )
...
...so it will always prioritize local version of raylib instead of
system-wide installations, which is a huge problem when testing any
changes done locally to raylib as it might cause silent mismatch issues.
There were only 4 examples affected by this issue which were using
`#include <raylib.h>`. Other examples use proper `#include "raylib.h"`
Fixes: https://github.com/raysan5/raylib/issues/4820
2025-03-07 19:24:53 +00:00
Ray
e4993c5557
Merge branch 'master' of https://github.com/raysan5/raylib
2025-02-25 17:50:54 +01:00
Ray
557d071fa2
Reviewed shader loading message
2025-02-25 17:50:46 +01:00
jordan4ibanez
7cae259a6d
Reviewed shaders comment wording ( #4793 )
2025-02-25 14:26:52 +01:00
Destructor17
27af359d1c
[rlgl] Preserve texture on mode switching ( #4364 )
...
* Fix textures on draw mode switch
* formatting fix
* ident
2025-02-25 12:39:00 +01:00
Ray
256953957f
Update Makefile
2025-02-25 11:43:25 +01:00
Jay Rhoden
015ab9df18
Amend comment to explain what LoadCodepoints is doing. ( #4787 )
...
As a beginner, it was not clear to me what the purpose of the LoadCodepoints function is. I am trying to help past me.
2025-02-23 18:19:10 +01:00
Colleague Riley
c34ef35433
Update RGFW and ensure it's consistent with the GLFW backend ( #4783 )
...
* add PLATFORM_WEB_RGFW
* fix some bugs
* fix web_rgfw gamepad
* send fake screensize
* fix gamepad bugs (linux) | add L3 + R3 (gamepad)
* fix?
* update RGFW (again)
* update raylib (merge)
* fix xinput stuff
* delete makefile added by mistake
* update RGFW
* update RGFW (rename joystick to gamepad to avoid misunderstandings
* update RGFW (fix X11 bug)
* update RGFW
* use RL_MALLOC for RGFW
* update RGFW (fixes xdnd bug)
* fix some formating
* Update RGFW
* update RGFW
* undo change
* undo change
* undo change
* undo change
* have .scroll be 0 by default
* update RGFW
* update RGFW
* update RGFW
* fix year
* fix wasm key event bug
* update RGFW
* link to IOKit
* update
2025-02-21 12:32:09 +01:00
Thomas Anderson
a1de60f3ba
added missing file ( #4754 )
2025-02-08 11:23:15 +01:00
Ray
53ea275b9c
Merge branch 'master' of https://github.com/raysan5/raylib
2025-01-26 19:43:01 +01:00
Ray
861ebafe62
Update shaders_mesh_instancing.c
2025-01-26 19:42:52 +01:00
Anstro Pleuton
7bfc8e8ca7
[example] Add shaders_rounded_rectangle example ( #4719 )
...
* Add shaders_rounded_rectangle example
* Minor tweaks to example template (add star, more)
* Combine shaders
* Fix changes after review
---------
Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
2025-01-23 10:51:36 +01:00
Ray
2c50da9a6a
REVIEWED: -sASSERTIONS usage by linker #4717
2025-01-21 19:18:23 +01:00
Anstro Pleuton
773e3f5f9f
Update more examples inconsistencies ( #4711 )
...
Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
2025-01-19 17:17:38 +01:00
Anstro Pleuton
945f181f1d
[examples] Update examples to be consistent ( #4699 )
...
* Update examples inconsistencies
* Happy new years, examples!
* Missed one inconsistency
* Update final few examples inconsistencies
---------
Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
2025-01-18 19:41:56 +01:00
Anthony Carbajal
27e530eb18
update examples with difficulty stars ( #4694 )
...
* update examples with difficulty stars
* manual fix script issues
* manual fix script issues
2025-01-17 10:42:30 +01:00
Ray
7c7b087efb
REVIEWED: example: shaders_deferred_render -WIP-
...
Not working but shader compiles and example runs... not sure if deferred rendering could be supported in OpenGL ES 2.0.
2025-01-16 19:48:31 +01:00
Ray
7b570bdfdd
Update models_point_rendering.c
2025-01-16 19:47:06 +01:00
Eike Decker
5c1cce28a7
Using Module provided canvas id for event binding ( #4690 )
...
This change is replacing the hardcoded "#canvas" element references in
rcore_web to allow using canvas elements that use different names
(which is necessary when using multiple canvas elements on one page).
Also adding a cursor hiding example to mouse example.
2025-01-16 00:32:58 +01:00
Ray
cfbba79bd3
REVIEWED: example: models_textures_tiling shaders
2025-01-12 20:59:12 +01:00
Ray
fddfb58f85
REVIEWED: Potential shader issues
2025-01-12 20:39:07 +01:00
Ray
af163ba22a
REVIEWED: example: shaders_julia_set
2025-01-12 20:29:46 +01:00
Ray
da5a868e2a
REMOVED: example: core_gamepad_info
2025-01-12 18:21:59 +01:00
Ray
2f6230e366
Formatting review and examples review
2025-01-12 18:02:36 +01:00
Ray
4bceddd4de
ADDED: example: models_tesseract
2025-01-12 16:19:32 +01:00
Ray
a1896c7a90
REVIEWED: Code/Web-Makefile formatting
2025-01-12 16:19:10 +01:00
Ray
8e450e4446
Reviewed shaders formating to follow raylib coding conventions
2025-01-11 19:36:46 +01:00
Ray
62d8969a56
Reviewed shader formating
2025-01-10 22:56:25 +01:00
veins1
08b089f620
Reviewed shaders_deferred_render ( #4676 )
...
Fixed: g-buffer textures binding
Fixed: Clearing screen with white would leak onto g-buffer textures
Reviewed comments
2025-01-10 17:41:40 +01:00
Hakunamawatta
43dbaf21e7
[examples] Fix broken link ( #4674 )
2025-01-10 17:40:13 +01:00
rexept
2f95e8382b
typo fix ( #4656 )
2025-01-05 12:30:06 +01:00
Peter0x44
0f6e85a975
[build] CMake: Don't build examples using audio if audio is disabled ( #4652 )
2025-01-01 12:18:11 +01:00
Ray
fa0eada61a
Update year to 2025
2025-01-01 00:02:52 +01:00
Jeffery Myers
f355d6f1db
Transform the vertex normals by the animated matrix ( #4646 )
2024-12-29 01:07:52 +01:00
Johannes
75b6b825df
using addCMacro instead of defineCMacro ( #4620 )
...
Co-authored-by: Johannes Rønning <johannes@picterus.com>
2024-12-28 15:57:10 +01:00
Le Juez Victor
6eb1206660
fix shaders_deffered_render.c for OpenGL ES 3 ( #4617 )
...
This fixes an incomplete framebuffer issue due to the use of a texture format not supported in ES 3.
This commit also adds more information on how to manage deferred rendering.
2024-12-18 18:07:48 +01:00
Colleague Riley
58004723d8
[rcore][RGFW] Add new backend option: PLATFORM_WEB_RGFW and update RGFW ( #4480 )
...
* add PLATFORM_WEB_RGFW
* fix some bugs
* fix web_rgfw gamepad
* send fake screensize
* fix gamepad bugs (linux) | add L3 + R3 (gamepad)
* fix?
* update RGFW (again)
* update raylib (merge)
* fix xinput stuff
* delete makefile added by mistake
* update RGFW
* update RGFW (rename joystick to gamepad to avoid misunderstandings
* update RGFW (fix X11 bug)
* update RGFW
* use RL_MALLOC for RGFW
* update RGFW (fixes xdnd bug)
* fix some formating
2024-12-18 12:03:42 +01:00
Ray
de6c09ee7a
WARNING: REVIEWED: Use libraylib.web.a naming on PLATFORM_WEB
...
This change allows to have in same directory (currently `raylib/src`) two raylib build versions: Desktop and Web
2024-12-18 11:45:55 +01:00
Michael
d2cd2a0152
[rlgl][rmodels] Add instranceTransform shader location index #4538 ( #4579 )
2024-12-08 12:48:54 +01:00
Asdqwe
93a67417b3
Fix examples Makefile PLATFORM define ( #4582 )
2024-12-08 12:46:43 +01:00
danil
2820fcc29e
[examples] improve input_virtual_controls example ( #4584 )
2024-12-08 08:52:09 +01:00
Ray
6fbf08cc1f
Update pbr.fs
2024-12-01 22:41:38 +01:00
Ray
f9cf684356
Update pbr.vs
2024-12-01 22:40:46 +01:00
Ray
698bfc48fe
Update pbr.fs
2024-12-01 22:40:23 +01:00
Ray
0d39e7137b
Fix #4527
2024-11-21 12:38:29 +01:00
devdad
6af664c04e
Update shaders_basic_pbr example to work on web ( #4516 )
...
* basic pbr example
pbr implementation includes rpbr.h and few shader files header only file, which self contain everything needed for pbr rendering. Few textures and one model of the car which is under free licence which is included inside basic_pbr.c example file currently supported shader versions are 120 and 330 , version 100 has small issue which I have to resolve
* Unloading PBRMAterial
I forgot unloading PBRMaterial
* fix small issue with texOffset assigment.
value was Vector4 at first but I found out it would be unclear for and users, so I change to have two Vector2 instead, but forgot to assign offset .
* Changed size of textures and file name changed
Changed size of textures from 2048x2048 to 1024x1024 and file name changed to shaders_basic_pbr.c ,
Added the function PBRModel PBRModelLoadFromMesh(Mesh mesh);
but GenMeshPlane(2, 2.0, 3, 3) culdn't be used because it crash once GenMeshTangents() is used with that plane mesh
* Update to 5.5 version of eexample and fix to work in web
set GLSL_VERSION 100
set precision highp float;
removed in keyword
fix for loop has to use only constant
* Update shader_basic_pbr example to work on web
changed to GLSL_VERSION 100
update glsl100 shader
set float precision to highp
removed keyword in
change for loop tu use constant value gives an error
* Update shader_basic_pbr example to work on web
changed to GLSL_VERSION 100
update glsl100 shader
set float precision to highp
removed keyword in
change for loop tu use constant value gives an error
* removed rpbr.h
removed rpbr.h
2024-11-20 11:25:31 +01:00
Mute
f979cc62ee
Fixed grammar mistakes in core_3d_camera_first_person.c ( #4508 )
...
Changed line 118 from, "// For advance camera controls, it's reecommended to compute camera movement manually", to, "// For advanced camera controls, it's recommended to compute camera movement manually".
2024-11-19 09:04:14 +01:00
Ray
162efc1ec7
Update core_basic_window.c
2024-11-16 18:45:12 +01:00
Jeffery Myers
a2f6ae6796
Fix warnings in examples ( #4492 )
...
Move shapes/shapes_rectangle_advanced to the correct folder in MSVC project
Add core_input_virtual_controls.vcxproj back into sln file
2024-11-15 08:25:09 +01:00
Ray
5e6cdf3a73
Update emsdk path on Windows to match new raylib installer package
2024-11-14 18:41:37 +01:00
Ray
14d3bbbb86
Update raygui.h
2024-11-14 16:38:27 +01:00
Asdqwe
377248b1ac
Fix Makefile.Web ( #4487 )
2024-11-13 22:21:10 +01:00
Jeffery Myers
10fd4de258
Fix the example lighting shaders to use both frag and diffuse colors so they work with shapes and meshes. ( #4482 )
2024-11-11 19:55:33 +01:00
Everton Jr.
00396e3436
[rcore] Clipboard Image Support ( #4459 )
...
* [rcore] add 'GetClipboardImage' for windows
* [rcore] GetClipboardImage removed some unneeded defines
* [rcore] PLATFORM_SDL: create a compatility layer for SDL3
* external: add win32_clipboard.h header only lib
* [rcore] using win32_clipboard on platforms rlfw and rgfw
* [rcore] fix warnings in SDL3 compatibility layer
* Makefile: Allow specifying SDL_LIBRARIES to link, this helps with SDL3
* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW
* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW
* [rcore]: PLATFORM_SDL: improve clipboard data retrieval
* external: remove unused function from win32_clipboard.h
* Makefile: allow for extra flags necessary when compiling for SDL3
* [rcore]: fix string typo
* [rcore]: Properly handle NULL dpi passing. As is allowed in SDL2
* external: fix arch finding on win32_clipboard.h to allow compilation on msvc cmake CI
* [rcore]: PLATFORM_SDL: Treat monitor as an ID in SDL3 as opposed to an index as in SDL2
* [rcore]: typo
2024-11-09 19:40:41 +01:00
Ray
a617e1e217
Update core_2d_camera_mouse_zoom.c
2024-11-06 12:00:39 +01:00
Ray
b47fffb48b
Update Makefile.Web
2024-11-05 00:09:12 +01:00
Ray
be360d2ad1
RENAMED: UpdateModelAnimationBoneMatrices() to UpdateModelAnimationBones()
...
Still, not fully convinced of those functions naming, despite quite descriptive, sounds a bit confusing to me...
2024-11-03 13:12:01 +01:00
Ray
9e2591e612
Update Makefile
2024-11-01 12:14:06 +01:00
Everton Jr.
ad79d4a884
[shapes] Add shapes_rectangle_advanced example implementing a DrawRectangleRoundedGradientH function ( #4435 )
...
* [rshapes] Add function
* "[shapes] rectangle advanced: fix screen width and height to fit with other examples"
2024-10-29 22:23:51 +01:00
NishiOwO
ff66b49c19
fix ( #4440 )
2024-10-26 15:10:35 +02:00
Ray
8b9ea8cd5f
Update Makefile
2024-10-26 13:46:56 +02:00
NishiOwO
3dcddaedd7
Fix examples Makefile for NetBSD ( #4438 )
...
* fix makefile
* moving to LDPATHS
* fix clean and ldlibs stuff
2024-10-26 13:41:54 +02:00
Nikolas
7fedf9e0b8
[rtextures/rlgl] Load mipmaps for cubemaps ( #4429 )
...
* [rlgl] Load cubemap mipmaps
* [rtextures] Only generate mipmaps that don't already exist
* [rtextures] ImageDraw(): Implement drawing to mipmaps
* [rtextures] Load cubemap mipmaps
2024-10-26 12:09:38 +02:00
Asdqwe
91a4f04794
Use mingw32-make for Windows ( #4436 )
2024-10-26 11:39:24 +02:00
Ray
22c77d17b7
REVIEWED: WebGL2 (OpenGL ES 3.0) backend flags (PLATFORM_WEB) #4330
2024-10-26 00:51:37 +02:00
Ray
7ac36e20cd
Update Makefile.Web
2024-10-25 23:55:31 +02:00
Asdqwe
8b36253e2f
[build] [web] Fix examples Makefile for PLATFORM_WEB ( #4434 )
...
* Fix examples Makefile for PLATFORM_WEB
* Replace shell with assignment operator
* Replace tab with spaces
2024-10-25 23:47:55 +02:00
Jeffery Myers
f03f093909
Add input_virtual_controls to MSVC projects ( #4433 )
...
Fix input_virtual_controls example to use correct default font sizes
2024-10-25 09:47:04 +02:00
Jeffery Myers
728ccc96bc
Use the vertex color as part of the base shader in GLSL330 ( #4431 )
2024-10-24 23:49:30 +02:00
IcyLeave6109
15f6c47f07
Use free camera in model shader example ( #4428 )
2024-10-24 17:49:47 +02:00
Ray
6ff0b03629
REVIEWED: UpdateModelAnimationBoneMatrices() comments
2024-10-24 12:46:02 +02:00
Ray
b0140b876b
REVIEWED: GPU skninning on Web, some gotchas! #4412
2024-10-24 12:25:05 +02:00
Ray
eb04154c98
Update Makefile
2024-10-24 01:35:44 +02:00
Ray
de6487b177
Merge branch 'master' of https://github.com/raysan5/raylib
2024-10-23 23:28:08 +02:00
Ray
cd845368d8
Update skinning.fs
2024-10-23 23:28:01 +02:00
Asdqwe
157ee79a8e
Add drawing for generic gamepad on core_input_gamepad example ( #4424 )
2024-10-23 20:31:57 +02:00
Asdqwe
fe6da67066
[examples] Add deadzone handling to core_input_gamepad example ( #4422 )
...
* Add deadzone handling to core_input_gamepad example
* Rename variables
2024-10-23 16:31:27 +02:00
Asdqwe
75a4c5bf20
Update core_input_gamepad example ( #4416 )
2024-10-23 00:28:20 +02:00
Ray
79e2be68c2
Reviewed skinning shaders #4412
2024-10-23 00:20:59 +02:00
Ray
b2dca724c7
REVIEWED: skinning shader for GLSL 100 #4412
2024-10-22 10:41:43 +02:00
Anthony Carbajal
fe66bfb785
moved update out of draw area ( #4413 )
2024-10-22 10:31:44 +02:00
Anthony Carbajal
680238689b
removed extra update command ( #4401 )
2024-10-21 01:03:01 +02:00
Ray
1effe92129
WARNING: REMOVED: SVG files loading and drawing, moving it to raylib-extras
2024-10-10 20:37:46 +02:00
Magnus Oblerion
74ce90ce67
[example] Input virtual controls example ( #4342 )
...
* Add files via upload
* Update core_input_gamepad_virtual.c
* Add files via upload
* Update and rename core_input_gamepad_virtual.c to core_virtual_Dpad.c
* Update and rename core_virtual_Dpad.c to core_input_virtual_controls.c
* Delete examples/core/core_input_gamepad_virtual.png
* Add files via upload
* Update Makefile
* Update Makefile.Web
* Update README.md
* Update README.md
* Create core_input_virtual_controls.vcxproj
* Delete projects/VS2022/examples/core_input_virtual_controls.vcxproj
2024-10-06 15:47:47 +02:00
Ashley Chekhov
20ce8ba046
Typo fix ( #4356 )
...
Seemed to be a typo. Hope this helps.
2024-10-04 11:04:26 +02:00
Jeffery Myers
0e7bcd5639
[MODELS] Disable GPU skinning for MacOS platform ( #4348 )
...
* Update raylib_api.* by CI
* Disable GPU skinning on MacOS
Add GPU skinning example to MSVC Projects.
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-30 12:10:02 +02:00
Daniel Holden
86ead96263
[rmodels] Optional GPU skinning ( #4321 )
...
* Added optional GPU skinning
* Added skinned bone matrices support for different file formats.
* Moved new shader locations to end of enum to avoid breaking existing examples. Added gpu skinning on drawing of instanced meshes.
* Added GPU skinning example.
* Removed variable declaration to avoid shadowing warning.
2024-09-20 17:30:37 +02:00
Tchan0
8dbf371244
Examples makefiles: align /usr/local with /src Makefile ( #4286 )
...
* align /usr/local with src Makefile
Align /usr/local with the /src Makefile, where it can be overriden.
* /usr/local: allow override
align /usr/local with the /src Makefile, where it can be overriden
2024-08-25 11:23:08 +02:00
Ray
414133dbe7
Update models_point_rendering.c
2024-08-24 18:56:06 +02:00
Reese Gallagher
7bde76ca2c
[rmodels] More performant point cloud rendering with DrawModelPoints() ( #4203 )
...
* Added the ability to draw a model as a point cloud
* Added example to demonstrate drawing a model as a point cloud
* polished the demo a bit
* picture for example
* adhere to conventions for example
* update png to match aspect ratio
* minor changes
* address code convention comments
* added point rendering to makefiles
* added point rendering to readme and renumbered examples
* comment formatting
---------
Co-authored-by: Reese Gallagher <re325479@ucf.edu.com>
Co-authored-by: Ray <raysan5@gmail.com>
2024-08-24 18:42:38 +02:00
Ray
039df36f4b
REVIEWED: Automation events mouse wheel #4263
2024-08-20 19:13:18 +02:00
Anthony Carbajal
418b878053
[Examples] set FPS to 60 ( #4235 )
...
* set FPS to 60
* remove extra commented lines
2024-08-10 20:07:23 +02:00
Asdqwe
46cb6af437
Fix core_input_gamepad_info example so all buttons are displayed within the window ( #4241 )
2024-08-09 19:03:14 +02:00
Anthony Carbajal
e4529ff8f9
update text input box ( #4229 )
2024-08-09 09:18:00 +02:00
Anthony Carbajal
3c5bdae7ab
update shapes bouncing ball ( #4226 )
2024-08-09 09:16:05 +02:00
Anthony Carbajal
06aeb21429
update shaders basic pbr ( #4225 )
2024-08-09 09:15:07 +02:00
Anthony Carbajal
85c6489d81
update models box collisions ( #4224 )
2024-08-09 09:12:26 +02:00
Anthony Carbajal
243801c2d1
update text writing anim ( #4230 )
2024-08-09 09:07:56 +02:00
Anthony Carbajal
070c1c9d63
update examples missing unloadtexture ( #4234 )
2024-08-09 09:03:27 +02:00
Anthony Carbajal
5233b80fb7
update raygui ( #4238 )
2024-08-09 08:55:16 +02:00
Jeffery Myers
9ef678d90a
Fix warnings ( #4239 )
...
* Update raylib_api.* by CI
* Fix typecast warnings
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-09 08:54:22 +02:00
kai-z99
97c02b2425
[examples] Fix some examples ( #4211 )
...
* Add text
* small typo
2024-08-07 01:05:53 +02:00
Ray
db8b199363
Reviewed shader
2024-08-06 18:32:14 +02:00
CDM15y
b44b759b8f
[examples][shaders_raymarching] Add raymarching.fs for GLSL120 ( #4183 )
...
* Create raymarching.fs
* Update raymarching.fs
* Update raymarching.fs
* Update raymarching.fs
Remove `fragColor` as it is unused
Move the license to the top of the code to improve readability.
2024-08-06 18:30:15 +02:00
Anthony Carbajal
4b84b5563e
Update audio mixed processor ( #4214 )
...
* updated audio mixed processor
* remove float cast, better parenthesis
2024-08-06 18:29:10 +02:00
Ray
b657001e0d
REVIEWED: shaders_vertex_displacement
2024-08-04 22:06:20 +02:00
Alex ZH
43b0c9410e
[examples] Add new example: shaders_vertex_displacement ( #4186 )
...
* shaders-vertex_displacement init
* implement simulation of wave in ocean
* update examples/README & add some comments
* update comments
* add gl100 shaders
2024-08-04 21:58:26 +02:00
Anthony Carbajal
6595bab8ff
update make for examples ( #4209 )
2024-08-04 21:45:50 +02:00
CDM15y
2d94d8d06d
[examples] Fix PBR and Shadowmap example shaders for GLSL 1.20 ( #4167 )
...
* Update pbr.fs
remove presicion mediump float because it is for GLES, and not desktop GL
* Fix shadowmap.fs
also suffers the same problem as pbr.fs
2024-07-20 10:42:55 +02:00
Ray
9764fef262
Update models_billboard.c
2024-07-07 21:02:35 +02:00
bohonghuang
6dd2a0e645
[rmodels] Consistent DrawBillboardPro with DrawTexturePro ( #4132 )
...
* [rmodels] Re-implement `DrawBillboardPro`
* [rmodels] Add comments to `DrawBillboardPro`
* [rmodels] Make `DrawBillboardPro` consistent with `DrawTexturePro`
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-07 20:27:51 +02:00
Ray
c95b2e88b7
Example review
2024-07-04 11:12:20 +02:00
Ray
ab20b2179f
Update Makefile
2024-07-01 18:56:06 +02:00
Ray
18d726be65
Update Makefile
2024-07-01 18:49:47 +02:00
Ray
2f49250baf
WARNING: UPDATE: Starting works on raylib 5.5 release
2024-07-01 18:31:16 +02:00
Ray
d243094ede
WARNING: BREAKING: Renamed PLATFORM_DESKTOP to PLATFORM_DESKTOP_GLFW
...
This could potentially be a breaking change, for consistency, now every possible desktop backend has the proper name assigned: GLFW, SDL, RGFW
raylib build system has been reviewed to fallback to `PLATFORM_DESKTOP_GLFW` by default when `PLATFORM_DESKTOP` defined
2024-07-01 18:28:44 +02:00
Ray
17cbc75aa7
REVIEWED: Formatting, follow raylib coding conventions
2024-06-30 11:07:38 +02:00
Bruno Cabral
6e2661f92d
[rtextures] Created ImageFromChannel() ( #4105 )
...
* created ImageFromChannel
Adds the possibility to extract a specific channel from an image
* naming convention
* example window height
* removed threshold
* removed alpha channel
* channel example organization
* updated channel example image
2024-06-30 10:33:32 +02:00
Jeffery Myers
c1ea32655a
[EXAMPLES] Default Skybox example to not use HDR ( #4115 )
...
* Update raylib_api.* by CI
* Default to not use HDR, and note that HDR support requires that raylib be built with HDR enabled.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 19:08:55 +02:00
Jeffery Myers
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
...
* Update raylib_api.* by CI
* Fix warnings when building examples in MSVC 2022
* fix auto-format that sneaked in there.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-24 17:47:32 +02:00
Ray
dcf2f6a8e9
Added note about performace #4067
2024-06-16 11:17:34 +02:00
Lázaro Albuquerque
cc40a91343
[build] Fix some warnings on web builds and remove some redundant flags. ( #4069 )
...
* update
* Revert "update"
This reverts commit e8adcabd94 .
* update
* remove a not stricly required flag
2024-06-16 10:42:50 +02:00
Ray
715633e0de
REVIEWED: Spline cubic bezier example
2024-06-16 10:41:47 +02:00
Santiago Pelufo
640eaca8bf
[rshapes] Fix multisegment Bezier splines. ( #3744 )
...
* [rshapes] Fix multisegment Bezier splines.
It seems to me that these functions are wrong, if you step the index by 1 you move to a control point instead of the next segment.
* Fix example shapes/shapes_splines_drawing for bezier splines.
* Draw circles to fill gaps between bezier segments.
2024-06-16 10:21:54 +02:00
Mike Will
81ff879b04
zig: run examples from their directories ( #4063 )
...
So that they can find their respective resource folders.
2024-06-16 09:38:54 +02:00
Karl Zylinski
fffae1a975
Fix fragPosition using wrong matrix in lighting_instancing.vs ( #4056 )
...
fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition.
2024-06-11 20:55:13 +02:00
Konrad Gutvik Grande
3948656d84
The example always showed a xbox controller, never a ps3 controller ( #4040 )
2024-06-07 10:21:02 +02:00
Sprix
e74d13e6db
Fix examples not building with gestures system disabled ( #4020 )
...
Build no longer fails with -DSUPPORT_GESTURES_SYSTEM=OFF and -DBUILD_EXAMPLES=ON
2024-06-06 11:47:07 +02:00
vaezim
d7a8af144d
Fix typos in markdowns and comments, Fix invalid links in HISTORY.md ( #4017 )
2024-05-30 08:22:07 +02:00
Ray
02d98a3e44
REVIEWED: 2d camera zoom, add alternative method #3977
2024-05-15 16:33:06 +02:00
Ray
479bd84400
Update shaders_palette_switch.c
2024-05-15 16:19:53 +02:00
Mike Will
46f9806359
Use logarithmic scaling for a 2d example with zoom functionality ( #3977 )
2024-05-15 16:19:22 +02:00
Ray
08ae888722
Update Makefile
2024-05-07 20:40:41 +02:00
Colleague Riley
9805fe0b1a
make RGFW a custom platform ( #3941 )
...
* fix minor bugs and errors (x86) for the RGFW platform, update RGFW platform license, update makefile info for RGFW platform
* revert
* (RGFW) (winapi) fix mouse hide bug when cursor changes
* ensure PLATFORM_SHELL is defined (PLATFORM_RGFW)
---------
Co-authored-by: ColleagueRiley <ColleagueRiley@gmail.com>
2024-05-07 20:30:52 +02:00
Ray
34d00d5217
Minor formatting tweaks
2024-05-05 19:46:31 +02:00
Ray
b03c8ba945
WARNING: BREAKING: REDESIGN: SetTextLineSpacing()
...
Redesigned function to only consider separation between the end of vertical size of one line and the beginning of next line
2024-04-28 23:07:21 +02:00
KotzaBoss
4b0e25d3af
Add rlCullDistance variables/getters and rlSetClipPlanes function ( #3912 )
...
The `RL_CULL_DISTANCE_` definition remains as the initial value
of the variables.
Basic usage can be:
```c
#include <raylib.h>
#include <rlgl.h>
rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, MY_CULL_DISTANCE_FAR);
if (must_reset_clip_planes)
rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR);
```
2024-04-23 14:24:37 +02:00
bohonghuang
d80febde7d
[rlgl] Implement vertex normals for RLGL immediate drawing mode ( #3866 )
...
* Fix several non-functional `target_compile_definitions`
* Avoid hardcoding the default vertex attribute locations
* Implement functional `rlNormal3f`
* Add normal definitions for `DrawCube`
* Update the basic lighting example to use `DrawCube` and `DrawPlane`
2024-04-23 14:22:29 +02:00
freakmangd
e0f6faa151
[build.zig] Drop support for 0.11.0 and use more idiomatic build script code ( #3927 )
...
* Remove support for 0.11.0, and make build script more idiomatic
+ remove all 0.11.0 compatibility functions
+ remove most LazyPath .path variants
+ I didn't touch emscripten, I don't know if its relative or absolute
+ change all absolute paths to use .cwd_relative
+ only use the builder allocator
+ have local dependencies use the package manager
+ make adding raygui more flexible
+ use zig-cache for generated wayland files
* Remove support for 0.11.0 in examples/build.zig
* update examples further and add clarifying comment on addRaygui
2024-04-22 09:13:01 +02:00
Ray
3caa424ad4
Review formatting
2024-04-21 12:29:09 +02:00
Ray
77cabc8bf2
Update shapes_draw_rectangle_rounded.c
2024-04-20 20:32:37 +02:00
Ray
68201c10c2
Update models_cubicmap.c
2024-04-20 19:58:14 +02:00
Benji
b00e467494
Revert "Build specific example using -DBUILD_EXAMPLE cmake flag ( #3921 )" ( #3922 )
...
This reverts commit c1fd98591d .
2024-04-19 08:43:24 +02:00
Benji
c1fd98591d
Build specific example using -DBUILD_EXAMPLE cmake flag ( #3921 )
2024-04-17 19:26:18 +02:00
Ray
112ce672e1
FIX : #3918
2024-04-17 19:12:47 +02:00
Ray
a6a08c75eb
Update corrupted-header sounds #3554
2024-04-17 18:30:02 +02:00
Yousif
a4819f99cb
Update shaders_hybrid_render.c ( #3908 )
...
Fix typo
2024-04-10 10:36:03 +02:00
iP
1fad8277a3
optimisation of the "bone socket" tutorial ( #3864 )
...
Less matrix operations doing.
2024-03-10 21:49:04 +01:00
Rob Loach
ba066656f7
[cmake] Disable SDL rlgl_standalone example ( #3861 )
...
* cmake: For SDL, disable rlgl_standalone
* cmake: Only build rlgl_standalone when on Desktop, and not shared libs
2024-03-08 12:33:40 +01:00
aiafrasinei
3b7be85151
Screen space related functions consistency ( #3830 )
...
* Screen/world-space related functions rename
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 12:28:11 +01:00
Rob Loach
fccdfa7926
cmake: For SDL build, link the glfw dependency ( #3860 )
2024-03-07 12:11:46 +01:00
johann nadalutti
53221eb799
feat: vox_loader normals and new voxels shader ( #3843 )
2024-02-29 18:28:51 +01:00
Dalton Overmyer
077ab6d56b
Add an example that generates a random sequence. ( #3846 )
2024-02-29 18:26:49 +01:00
aiafrasinei
2aed94cfc2
Fix examples warnings for macos ( #3842 )
2024-02-27 22:15:09 +01:00
Ray
7fae41b5c6
Update models_bone_socket.c
2024-02-26 11:03:12 +01:00
Ray
3086bf1668
Update models_bone_socket.c
2024-02-26 10:49:01 +01:00
iP
2a263a09cc
bone socket tutorial ( #3833 )
...
Tutorial on how to use bones as sockets to calculate the position of something.
2024-02-26 10:30:22 +01:00
Peter0x44
1df91e74b9
Fix building of raylib_opengl_interop on PLATFORM_DESKTOP_SDL ( #3826 )
...
I tested this with CMake. I don't know if the examples makefile
currently handles this case.
2024-02-26 10:29:21 +01:00
Peter0x44
b86f78f6b1
Fix examples linking with CMake and -DPLATFORM=SDL ( #3825 )
...
Currently, every example fails linking likeso:
[ 3%] Linking C executable audio_mixed_processor
/usr/bin/ld: ../raylib/libraylib.a(raudio.c.o): undefined reference to symbol 'exp@@GLIBC_2.29'
/usr/bin/ld: /usr/lib/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Apparently, linking libm explicitly is the solution.
2024-02-26 10:25:47 +01:00
Abhishek Rathore
bda919033d
Fixed typo in a comment ( #3816 ) ( #3817 )
...
Fixed a grammatical error by removing "are" to change `... but some are have multiple purposes ...` to `... but some have multiple purposes ...` in `textures/textures_image_generation`
2024-02-23 19:17:33 +01:00
Ray
23616153d4
Update Makefile
2024-02-22 23:25:05 +01:00
Peter0x44
31c6a340ab
Remove all uses of deps/mingw ( #3805 )
...
The purpose of this directory in GLFW is to provide some headers that
"mingw.org" doesn't. Raylib has long been unable to build with mingw.org
due to using certain symbols that aren't exposed in their headers.
(_ftelli64 and _access, among others.). Mingw-w64 already has the
necessary headers included, and doesn't need any of these external
implementations. For some reason, this also causes the following error
when building with Visual Studio's clang:
clang -c rglfw.c -Wall -D_GNU_SOURCE -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=c99 -O1 -Werror=implicit-function-declaration -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw
In file included from rglfw.c:61:
In file included from ./external/glfw/src/init.c:30:
In file included from ./external/glfw/src/internal.h:331:
In file included from ./external/glfw/src/platform.h:31:
In file included from ./external/glfw/src/win32_platform.h:70:
external/glfw/deps/mingw\xinput.h:227:26: error: a parameter list without types is only allowed in a function definition
227 | void WINAPI XInputEnable(WINBOOL);
|
If the last -Iexternal/glfw/deps/mingw is removed, the build works fine.
So, this workaround causes other problems, while not actually helping
raylib.
0bb605cd79/src/CMakeLists.txt (L272-L279)
GLFW's CMakeLists.txt first checks if either dinput.h or xinput.h are
provided by the toolchain, before telling the compiler to search for
headers in that directory. For EVERY compiler that can build raylib,
this is true.
In summary: This directory causes issues when building with some
compilers, and every toolchain that needs this workaround can't build
raylib anyway.
2024-02-22 23:06:22 +01:00
Ray
e52ae870f2
Reverted Makefile GL_ENABLE_GET_PROC_ADDRESS #3713
2024-02-05 21:38:13 +01:00
Ray
ea31bd47e5
REVIEWED: PLATFORM_WEB build flags, added GL_ENABLE_GET_PROC_ADDRESS
...
Reviewed flags formating
2024-02-05 21:12:57 +01:00
Ray
615ee9d177
REVIEWED: rlLoadFramebuffer()
2024-02-04 12:13:56 +01:00
Ray
40f3df5b86
Update core_2d_camera_platformer.c
2024-01-24 21:17:11 +01:00
freakmangd
482722d881
Update to latest zig 0.12.0dev while keeping 0.11.0 compatibility ( #3715 )
...
* update build.zig for latest zig 0.12.0dev while still allowing 0.11.0
* update examples/build.zig and add nicer message for type mismatch
2024-01-11 19:48:37 +01:00
Hongyu Ouyang
721e273547
Fix a bug in examples/shapes/shapes_following_eyes ( #3710 )
2024-01-06 11:32:10 +01:00
Ray
3afb4dda97
Update raygui.h
2024-01-05 22:32:59 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
Ray
36df9c5bd6
Update shaders_basic_pbr.c
2023-12-23 18:16:06 +01:00
Ray
e039a221a3
Review formating
2023-12-23 14:07:45 +01:00
Ray
706f74bce0
Update shaders_basic_pbr.c
2023-12-23 13:32:47 +01:00
Antonis Geralis
7ca95512d8
Review UnloadAutomationEventList ( #3658 )
...
* Review UnloadAutomationEventList
* Update raylib.h
* Update rcore.c
* Update core_automation_events.c
* Fix mistake
2023-12-23 12:14:39 +01:00
Ray
bb18018f29
REVIEWED: shaders_basic_pbr, added more comments
2023-12-21 21:32:53 +01:00
Ray
4805dddc18
Update shaders_deferred_render.c
2023-12-21 21:32:00 +01:00
Ray
2fe68a8a12
REVIEWED PR deferred render
2023-12-20 00:51:51 +01:00
Jett
e71153258b
fix for deferred rendering example. ( #3655 )
...
* fix for deferred rendering example.
* missed defines to build.
2023-12-20 00:27:59 +01:00
TheManTheMythTheGameDev
1fc3d9aeb2
Add shadowmapping example ( #3653 )
2023-12-19 10:37:41 +01:00
TheManTheMythTheGameDev
34a9163c52
Remove dependencies from PBR example ( #3649 )
...
* Remove dependencies from PBR example
* Reviewed example PR
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-12-19 10:36:03 +01:00
devdad
9bdc217987
basic PBR example ( #3621 )
...
* basic pbr example
pbr implementation includes rpbr.h and few shader files header only file, which self contain everything needed for pbr rendering. Few textures and one model of the car which is under free licence which is included inside basic_pbr.c example file currently supported shader versions are 120 and 330 , version 100 has small issue which I have to resolve
* Unloading PBRMAterial
I forgot unloading PBRMaterial
* fix small issue with texOffset assigment.
value was Vector4 at first but I found out it would be unclear for and users, so I change to have two Vector2 instead, but forgot to assign offset .
* Changed size of textures and file name changed
Changed size of textures from 2048x2048 to 1024x1024 and file name changed to shaders_basic_pbr.c ,
Added the function PBRModel PBRModelLoadFromMesh(Mesh mesh);
but GenMeshPlane(2, 2.0, 3, 3) culdn't be used because it crash once GenMeshTangents() is used with that plane mesh
2023-12-15 17:13:44 +01:00
Matthew Oros
387506faab
[rcore] Remove unused vScreenCenter ( #3632 )
2023-12-13 21:22:44 +01:00