Not-Nik / raylib-zig

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

Constants for primitive draw modes? #156

Closed sepiatonal closed 1 month ago

sepiatonal commented 1 month ago

I noticed that the constants for primitive draw modes (RL_LINES, RL_TRIANGLES, RL_QUADS, defined in rlgl.h) are missing from rlgl.zig. I'm not sure if it's meant to be this way, or if there's some sort of alternative that I don't see.

At the moment, I'm making do by hardcoding them, e.g. rl.gl.rlBegin(0x007) instead of what I imagine ought to be rl.gl.rlBegin(rl.gl.rl_primitive_draw_modes.rl_quads) or something.

Is there a better way?