60 Commits

Author SHA1 Message Date
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
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