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

No way to specify null with a size of 0 for the rl.LoadFontEx command. #110

Closed deckarep closed 3 months ago

deckarep commented 3 months ago

Hello,

This library is quite nice for Zig users.

One of the apis for Raylib: rl.LoadFontEx allows for loading fonts with control of codepoints, spacing and size. This API call currently takes a slice of codepoints but the original C api allows one to pass in null for the codepoints with a size of 0.

I don't see a way to do the same thing with the Ziggified function binding. I guess the internal api handles null differently vs just a slice that is empty because passing null causes Raylib to try to handle the codepoints automatically.

What are your thoughts and supporting this behavior?

Thanks in advance!

deckarep commented 3 months ago

@Not-Nik - thanks for the quick fix! Looks great!