API reference
raylib-zig has 1001 functions. Each entry shows the Zig signature, the C one it wraps, raylib's description, and the examples that call it. The reference is generated from the same data as the Zig API, so it matches the code.
In Zig, a function keeps raylib's name with the first letter in lower case: DrawText isrl.drawText. raymath is rl.math, rlgl is rl.gl, and raygui is a module of its own, @import("raygui"), without the Gui prefix: GuiButton isgui.button.
| Module | Covers | Functions |
|---|---|---|
| core | Window, drawing, shaders, timing, files and input. | 211 |
| gestures | Touch and mouse gestures. | 8 |
| camera | 3D camera modes and movement. | 14 |
| shapes | 2D shapes, splines and collision checks. | 75 |
| textures | Images (CPU), textures (GPU) and colors. | 125 |
| text | Fonts, text drawing, codepoints and strings. | 59 |
| models | 3D shapes, models, meshes, materials and animation. | 73 |
| audio | Audio device, sounds, music and streams. | 66 |
| math | Vectors, matrices and quaternions (raymath, as rl.math). | 146 |
| gl | rlgl, raylib's OpenGL layer (as rl.gl). | 163 |
| raygui | Immediate-mode GUI controls (as @import("raygui")). | 61 |