53 Commits

Author SHA1 Message Date
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
Not-Nik
b98527d062
Forward raylib options (#87) 2024-05-15 22:27:54 +02:00
Not-Nik
07a11a1c28
Publicly expose emcc utility functions from build script 2024-05-03 22:16:39 +02:00
Nikolas
ae751ce82e
Bump to Zig 0.12/raylib 5.1-dev (#81)
* Update to Zig 0.12.0 and raylib 5.1-dev

* More build.zig fixes for 0.12

* Get module with target and optimization

* Add examples to build step when compiling for emscripten

* Remove unused function

* Add build.* and emcc.zig to the zon paths (#83)

As per some info found through https://github.com/ziglang/zig/issues/18282,
this is apparently necessary to use this library as a dependency.

Co-authored-by: Drum Ogilvie <me@daogilvie.com>

* Update binding
2024-04-28 23:46:51 +02:00
Not-Nik
6eeb304ff3
Remove public build script API 2024-04-25 23:24:56 +02:00
Not-Nik
9600e2108a
Rename library files 2024-04-14 22:20:30 +02:00
Not-Nik
ee7593d5ef
Add rlgl binding (#77) 2024-04-14 22:14:49 +02:00
Not-Nik
625827ac4c
Add test step 2024-04-14 22:03:33 +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
Not-Nik
433c170c02
Update project setup script to use raylib-zig as a dependency, instead of cloning the entire repo 2024-04-03 19:37:10 +02:00
Locria Cyber
183347adaf
expose raylib artifact 2023-12-25 09:38:45 +00:00
Locria Cyber
654fd4b99f
Update to raylib 5.0 2023-12-25 09:23:28 +00:00
Not-Nik
239d3a2d96
Remove pub qualifier from getModuleInternal in build.zig 2023-10-11 13:47:18 +02:00
Not-Nik
aee5a0d11f
Remove system raylib option 2023-10-05 15:41:34 +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
Blue
977d305714 some final changes 2023-08-16 13:06:02 -06:00
Blue
7d62be63e2 small modification to emscripten build 2023-08-14 00:09:46 -06:00
Blue
1c142efe55 fix project errors 2023-08-14 00:03:25 -06:00
Blue
de4918cb56 major refactor ohw web build system 2023-08-13 23:52:52 -06:00
Blue
7bad5e92bf remove 'web_build_zig_entrypoint.zig' insanity 2023-08-13 15:47:00 -06:00
Blue
b48c7f9219 fix errors 2023-08-11 16:02:55 -06:00
Blue
dea3072cc8 add error print and various minor code changes 2023-08-11 15:55:51 -06:00
Blue
a28f475850 remove a TODO 2023-08-11 12:08:37 -06:00
Blue
6e6cbceef7 make updateTargetForWeb reasons more clear 2023-08-11 11:46:32 -06:00
Blue
7c296e8667 add updateTargetForWeb back 2023-08-11 11:36:44 -06:00
Blue
7120d454fd remove updateTargetForWeb 2023-08-11 11:03:30 -06:00
Blue
5efb75c291 project buils based on target instead of webexport 2023-08-11 10:57:27 -06:00
Blue
c76acc242d fix mistake 2023-08-11 01:01:08 -06:00
Blue
7a0d397baf add web support using Emscripten 2023-08-11 00:44:28 -06:00
Not-Nik
ec45e33189
Update project setup script 2023-08-05 20:29:36 +02:00
Not-Nik
0d4cc3ac8c
Fix file exists in multiple modules error when including raymath 2023-08-05 20:10:10 +02:00
Not-Nik
6a52de5c34
Properly link system libraries 2023-07-22 23:18:04 +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
42671d0195
Some work on the examples 2023-07-09 18:45:15 +02:00
Jordan O'Leary
552e5ad800 src: Resolve merge conflict 2023-03-25 17:03:40 -04:00
Jordan O'Leary
aa3f77d736 add example "sprite_anim" 2023-03-23 12:19:15 -04: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
bc85894992
Blatant copy rcorre's 'Fix SetShaderValue and port rlights.' 2021-07-25 02:19:01 +02:00
Jesse Rudolph
6ece4e99f0 add argument to Pkg().link to enable linking to system raylib 2020-05-24 06:04:21 -05:00
Jesse Rudolph
c6222a0913 add raylib submodule
also add build helper `lib.zig` to handle compiling and linking against
raylib's source code, and update `build.zig` for examples to reflect
lib.zig usage.
2020-05-23 03:46:54 -05:00
Not-Nik
96f83b9104
Make build file more readable 2020-05-08 18:16:05 +10:00
sacredbirdman
a7fa7755de zig 0.6.0 compatibility 2020-04-27 20:43:42 +03:00
G3bE
5f8226f8d8
Some minor improvements 2020-02-22 20:43:30 +10:00
G3bE
53be5d5871
Add some examples 2020-02-16 15:29:40 +10:00
G3bE
169fc6a886
Add (broken) models loading example 2020-02-15 21:53:45 +10:00