74 Commits

Author SHA1 Message Date
vent
1ef4995f82
Fix zig build test (#192) 2025-01-12 21:52:40 +01:00
Josh Lankford
561481f4ae add new shape examples to build.zig 2025-01-10 19:16:57 +01:00
Alexander Moening
0dcee846f4
Add both field for runtime Linux platform detection (#179)
Add `both` field to allow GLFW to use runtime platform detection
2024-12-20 17:12:46 +01:00
Daniel Koucher Machado
de8c2d4585
Automatically include Emscripten headers (#173)
* add emscripten headers

* update func to return error
2024-11-26 20:18:33 +01:00
Not-Nik
90109ff804
Revert "[build] Only cache raygui impl (#170)"
This reverts commit 2f773da6b38508dee1509282eadcfcab9c033b0e.
2024-11-08 17:48:26 +01:00
Not-Nik
2f773da6b3
[build] Only cache raygui impl (#170) 2024-11-08 15:36:12 +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
Not-Nik
a2397363aa
meta: Bump raylib/raygui 2024-10-13 14:12:39 +02:00
pancelor
6418a87091
Tidying (#150)
create resources folder during project_setup, and link with emscripten

--embed-file complained b/c the directory was empty, so I added
resources/placeholder.txt

I tested project_setup.sh (but not project_setup.ps1) -- the emscripten
build works

also, s/std.builtin.Mode/std.builtin.OptimizeMode
(std.builtin.Mode's source says: "///Deprecated; use OptimizeMode.")
2024-09-28 14:55:09 +02: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
19db777449
Add option to build raylib as a shared library (#113) 2024-07-06 22:49:00 +02:00
Not-Nik
c0d07991d1
Merge raymath and rlgl into main raylib module 2024-06-05 22:56:07 +02:00
Not-Nik
4d48d3c090
Pass OpenGL version to raylib dependency (#100) 2024-06-04 14:15:40 +02:00
Not-Nik
533c31321a
Fix build with raygui (#98) 2024-06-02 20:55:44 +02:00
Not-Nik
876219c600
Properly depend on raygui 2024-05-31 21:15:19 +02:00
Not-Nik
a0126d15be
BREAKING: rename raylib-math module to raymath 2024-05-31 20:27:48 +02:00
Mohanavel S K
efb7b736db
Adding support for raygui (#95)
* updated build.zig and generate_functions.py to add raygui

* added raygui.h and manually coded some structs & enums in raygui prelude WIP

* ported all the structs, enums and globals to zig till raygui implementation

* imported types from raylib in raygui

* re-encoded raygui-prelude.zig. I don't know for some reason it was showing up as UTF-16 unicode text file. re-encoded it to UTF-8

* fixed imports in prelude to work properly with generated files

* updated generate_functions.py file to generate for raygui [text type error not fixed]

* simple temporary patch for mentioned text type issue

* removed unused imports from raylib in raygui

* added generated files

* Manually define raygui functions for slice arguments

* Manually define raygui functions with pointer return values

---------

Co-authored-by: Not-Nik <nik.wipper@gmx.de>
2024-05-31 19:24:05 +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
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