58 Commits

Author SHA1 Message Date
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
Not-Nik
0ee5495059 Fix 3d camera first person example 2023-07-22 23:20:20 +02:00
Not-Nik
edbd73e6be
Bump to Zig 0.11/raylib 4.6-dev 2023-07-21 17:04:56 +02:00
Not-Nik
9c5197bad4
New logo (example) 2023-07-21 14:20:03 +02:00
Not-Nik
286324cf03
Defer begin/end in examples 2023-07-20 16:39:06 +02:00
Not-Nik
f50189fdd0
More defer 2023-07-20 16:23:41 +02:00
Not-Nik
4bb6b605e4
Some small example fixes 2023-07-14 10:59:40 +02:00
Not-Nik
3f046d9db7
Convert return values 2023-07-11 18:58:07 +02:00
Not-Nik
d07552a064
Update example casts 2023-07-11 15:56:39 +02:00
Not-Nik
9e908b3925
Color member functions 2023-07-11 15:50:31 +02:00
Not-Nik
2578dceb42
Texture member functions 2023-07-11 15:39:11 +02:00
Not-Nik
7e95ad81b5
Update enum/const name style 2023-07-10 22:43:01 +02:00
Not-Nik
e29e012981
Map C pointers to Zig and functions names use Zig naming conventions 2023-07-10 22:22:37 +02:00
Not-Nik
c564af4f61
Move colors into color struct 2023-07-10 00:57:02 +02:00
Not-Nik
7a9cdd3af0
More convenience functions in structs 2023-07-09 19:31:27 +02:00
Not-Nik
42671d0195
Some work on the examples 2023-07-09 18:45:15 +02:00
Jordan O'Leary
3a3c09af40
Merge branch 'devel' into sprite_anim2 2023-03-25 17:04:29 -04:00
Jordan O'Leary
aa3f77d736 add example "sprite_anim" 2023-03-23 12:19:15 -04:00
Jordan O'Leary
1e61d8881e doc: Add comment crediting original 2023-03-23 11:58:38 -04:00
Jordan O'Leary
e83f8a01b1 add example "texture_outline"
Which demonstrates shader support
2023-03-23 11:57:14 -04:00
Not-Nik
1e06706bff
Update to 4.5-dev 2023-01-23 22:07:43 +01:00
Not-Nik
723c77688c
Update to raylib 4.2/zig 9.1 2022-08-11 23:05:10 +02:00
Not-Nik
ba7b7c97f8
Update build system to latest raylib 2022-03-18 16:57:15 +01:00
Not-Nik
c83263a8a7
Readd core examples 2022-01-08 23:51:50 +01:00
Not-Nik
eba6c5392f
Update versions 2022-01-08 23:18:09 +01:00
Francisco Demartino
5e275e93df fix build and basic_window example
some restructuring due to the recent changes to usingnamespace.

also cleaned up some deprecated stuff from raylib 3.7.

- appended the contents of raylib-wa.zig into raylib-zig.zig
- using raylib functions requires `const rl = @import("raylib");`
    (and accesing the identifiers inside rl, like `rl.InitWindow`)

only the basic_window example was updated, and it looks like it crashes
on keyboard inputs.

many thanks to @nektro :)
2022-01-08 05:37:52 -03:00
Not-Nik
004388133b
Fixup for rl 3.7 2021-11-28 14:07:22 +01:00
Not-Nik
a8d8d4b9bc Merge branch 'devel' of https://github.com/Not-Nik/raylib-zig into devel
Local pull, I'm sorry
2021-07-25 02:19:11 +02:00
Not-Nik
bc85894992
Blatant copy rcorre's 'Fix SetShaderValue and port rlights.' 2021-07-25 02:19:01 +02:00
Ryan Roden-Corrent
51b327fa03
Complete models_loading example.
This had a few things missing/commented, but after fixing the load paths
and uncommenting code, it seems to work fine for me.

I also ran `zig format` on the example, I can submit a PR without that
if it isn't ideal.
2021-07-24 16:21:49 -04:00
Maurizio Crocci
73a76bf849 Fixes examples that had unused params 2021-07-10 03:26:08 +01:00
Not-Nik
1e4b02ad1b
Fix mouse input example 2020-11-29 11:51:56 +01:00
Not-Nik
c481ade52f
Starting out with object orientation 2020-05-04 15:06:13 +10:00