90 Commits

Author SHA1 Message Date
leonardo-kr
e8167c2e56
add dropped files example (#260)
* add dropped files example

* reformat build.zig
2025-07-23 16:24:56 +02:00
Mike Will
14f49a38dd
update name changes for rgui's sliderBar and checkBox functions in examples (#252)
update name changes for rgui's `sliderBar` and `checkBox` in examples
2025-07-23 16:21:50 +02:00
Daniel Hill
0de5f8aed0 fix(raygui): make some funcs return bool instead of i32 2025-04-20 13:50:02 +02:00
Daniel Hill
67fd5af55a fix(raygui): strip "Gui" prefix from Zig functions 2025-04-20 13:50:02 +02:00
Daniel Hill
f4b69764db feat(raygui): get message box example working 2025-04-20 13:50:02 +02:00
Axel Magnuson
dfe22275cf
Core 2D Camera Platformer Example (#222)
* Core 2D Camera Platformer Example

* Use decl literals for enums in platformer example
2025-03-23 19:52:05 +01:00
Mike Will
d4fc514d54
examples: Use decl literals (#221) 2025-03-12 21:21:15 +01:00
Nikolas
a7f626993c
Fix basic_window_web, where a bool was passed to an int 2025-03-10 13:27:50 +01:00
kukuen
1a9b848c06
Port of basic_window_web from raylib (#210)
Port basic_window_web from raylib
2025-03-06 15:19:10 +01:00
Nikolas
94fa7e23b0
Finish move to sentinal terminated slices (#203) 2025-03-04 17:50:23 +01:00
Nikolas
bc82c6ebd7
Move from sentinel-terminated pointers to sentinel-terminated slices globally ([+:0] -> [:0]) (#203) 2025-02-24 16:44:49 +01:00
Michael Lohr
4d452b2bcd
Add raymarching example (#208)
* feat: add raymarching example

* add to build.zig
2025-02-16 19:44:48 +01:00
Woshiwuja
8e5ef1045d
Added heightmap example (#206)
* added heightmap example

* better formatting
2025-02-16 19:43:02 +01:00
Frost-Phoenix
d3fdd327d5 example: add audio_module_playing 2025-02-16 19:41:48 +01:00
Frost-Phoenix
09ec2ca22b example: add audio_sound_loading 2025-02-16 19:41:48 +01:00
Frost-Phoenix
9882dd4ba1 example: add audio_music_stream 2025-02-16 19:41:48 +01:00
Frost-Phoenix
5004bb2316 example: add text_writing_anim 2025-02-02 12:24:49 +01:00
Frost-Phoenix
9faf4b97a1 add text_raylib_fonts example
remove unused import and simplify code
2025-02-02 12:24:49 +01:00
vent
cb9fb452c6
Fix segault in textures_image_loading (#190) 2025-01-11 18:09:12 +01:00
vent
41022159ad
Error check using IsValid functions and return error unions (#191)
* Verify shaders are valid

* Verify images are valid

* Verify models are valid

* Verify materials are valid

* Verify textures are valid

* Verify render textures are valid

* Verify waves are valid

* Verify sounds are valid

* Verify music is valid

* Verify audio streams are valid

* Verify fonts are valid

* Update examples to handle error unions
2025-01-11 18:07:33 +01:00
Josh Lankford
f8b1495c69 add draw rectangle rounded example 2025-01-10 19:16:57 +01:00
Josh Lankford
882b69d8c9 add draw circle sector example 2025-01-10 19:16:57 +01:00
Josh Lankford
9f30de1eac add draw ring example 2025-01-10 19:16:57 +01:00
Josh Lankford
3720deda6d add following eyes example 2025-01-10 19:16:57 +01:00
Josh Lankford
a7deec3964 add collision area example 2025-01-10 19:16:57 +01:00
Josh Lankford
2fcdf3af45 add lines bezier example 2025-01-10 19:16:57 +01:00
Josh Lankford
16f4871846 add rectangle scaling example 2025-01-10 19:16:57 +01:00
Josh Lankford
21e7bb8cd3 add raylib logo animation example 2025-01-10 19:16:57 +01:00
Josh Lankford
2a569ea2ef add color palette example 2025-01-10 19:16:57 +01:00
Josh Lankford
4e08de5584 add bouncing ball example 2025-01-10 19:16:57 +01:00
Josh Lankford
350388c8ec add basic shapes example 2025-01-10 19:16:57 +01:00
vent
845af357e4
Remove redundant namespaces from enums (#178) 2024-12-23 21:27:02 +01:00
Miko
f5abffe4f7
feat: textures image loading example (#167)
Co-authored-by: Mikolaj Witkowski <notai@mikolajs-mbp.home>
2024-11-08 15:10:19 +01:00
mega-dean
c191e12e7c
make some files not executable (#160) 2024-10-18 14:22:28 +03:00
Nicholas S. Zivkovic
817f91b57c
ported example core 3d picking (#163) 2024-10-18 14:21:01 +03:00
Nicholas S. Zivkovic
a6f94ce655
ported example 3d camera free (#162) 2024-10-18 14:19:22 +03:00
Krieg
2176d37bcc
Ported raylib example "text/text_format_text.c" (#141)
* Added example: text_format_text.zig

* reverted autoformatting changes
2024-08-31 10:41:42 +02:00
YetAnotherCoder00
6d52ac4e13
added 2d camera mouse zoom example (#129)
* added 2d camera mouse zoom example

* correctly formatted build.zig

* removed "gl" const
2024-08-17 16:58:15 +02:00
Not-Nik
c0d07991d1
Merge raymath and rlgl into main raylib module 2024-06-05 22:56:07 +02:00
Not-Nik
674e5ada11
Use ShaderUniformDataType instead of int 2024-05-31 20:31:58 +02:00
Not-Nik
a0126d15be
BREAKING: rename raylib-math module to raymath 2024-05-31 20:27:48 +02:00
Not-Nik
6ff9f0a45b
Use packed struct for ConfigFlags (#93) 2024-05-31 20:23:04 +02:00
Mike Will
39909cdcb3
Add an implementation of Zig's Allocator interface (#94) 2024-05-21 16:12:20 +02:00
Sebastian Lukas
b5330624d6
Adding texture/background_scrolling example (#91)
Adding textures_background_scrolling example

Signed-off-by: Sebastian Lukas <sisasebbl@googlemail.com>
2024-05-20 20:38:22 +02:00
Daniel Hill
a488218d0e
feat(examples): core/basic_screen_manager & core/window_flags (#78)
* feat(examples): add `core/basic_screen_manager`

* feat(examples): add WIP `core/window_flags`

* fix(examples): get `core/window_flags` working correctly
2024-04-14 20:26:29 +02:00
Nikolas
694702b758
Update fps example to be more inline with raylib's version 2024-03-26 20:21:24 +01:00
James 'JT' Tumber
4edb34888a
Lock the cursor to the window for first person camera 2024-03-22 16:14:30 +00:00
Locria Cyber
44e53ff7d1
fix examples 2023-12-28 15:07:14 +00:00
Not-Nik
a6fa62999e
Remove old example code 2023-09-14 13:05:56 +02:00
vent
a378960088 Clean up build.zig and examples
This commit affects the build.zig and examples files. It reformats the
code to meet a 120 column limit. It also adjusts comments so that
there is a space after the comment symbol '//' and the grammar in the
comments has been fixed.
2023-09-11 16:04:32 +01:00