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

Used raylib enums instead of i32 #96

Closed Winnak closed 4 months ago

Winnak commented 4 months ago

I've covered the ones that I use + whatever I found around it. It is not extensive (I've probably missed some cases) but it is a step in the right direction.

Also, I added FontAtlasPackMethod, which doesn't explicitly exist in raylib, but it is how it is used in raylib.

Not-Nik commented 4 months ago

This should be integrated with fix_enums in generate_functions.py

Not-Nik commented 4 months ago

There are several issues with this PR; it doesn't integrate with the generator script, I don't like the int/enum casts in member functions and you should add the FontAtlasPackMethod to raylib before it can be in this binding. I'm closing the PR, but I will add your changes alongside other enum improvements relating to #93