21 Commits

Author SHA1 Message Date
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
vent
845af357e4
Remove redundant namespaces from enums (#178) 2024-12-23 21:27:02 +01:00
Not-Nik
674e5ada11
Use ShaderUniformDataType instead of int 2024-05-31 20:31:58 +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
edbd73e6be
Bump to Zig 0.11/raylib 4.6-dev 2023-07-21 17:04:56 +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
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
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
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
bc85894992
Blatant copy rcorre's 'Fix SetShaderValue and port rlights.' 2021-07-25 02:19:01 +02:00