Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
619 stars 115 forks source link

feat(examples): `core/basic_screen_manager` & `core/window_flags` #78

Closed blazkowolf closed 5 months ago

blazkowolf commented 5 months ago

I ported two examples that were useful to me recently. window_flags was also a good example to port because I think it highlights some possible ergonomics improvements for functions like isWindowState.

Also, I had to slightly alter the usages of textFormat in window_flags from how they appeared in the upstream raylib repo because I was having trouble passing [:0]const u8s as arguments to the format string. I think this was most likely ignorance on my part since I'm relatively new to Zig.

Porting these examples were smooth and fun! Thanks again for your great work on these bindings!