raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.
Overview
raylib provides windowing, 2D and 3D drawing, input, audio, and math helpers in one cohesive API inspired by classic BGI and XNA-style ergonomics. Developers write plain C without a visual editor; learning flows from examples and a concise cheatsheet rather than large formal API manuals.
Rendering uses OpenGL acceleration with an internal rlgl abstraction, optional software backend rlsw, and support for compressed textures, PBR materials, skeletal animation formats, shaders, and VR stereo output. Audio can stream common file formats. The raymath module covers vectors, matrices, and quaternions.
Binary releases and package managers cover Windows, Linux, macOS, Android, HTML5, Raspberry Pi, and other platforms mentioned in project guides. Bindings exist for dozens of languages. Example code numbering in the hundreds demonstrates individual features in isolation.
Design trade-offs keep the API small: one window and context by default, vertically flipped render textures, and font quality limitations compared with dedicated text stacks. Forks and samples address gaps when projects outgrow the core scope.
Key features
- Bundled dependencies in one library
- OpenGL and software render paths
- 2D, 3D, audio, and input modules
- Shader and PBR material support
- Large cross-platform example set
- Many language bindings
- VR stereo rendering option
- raymath for 3D math
Use cases
- Game prototyping in C
- Graphical tooling and education
- Embedded and IoT graphics
- WebAssembly and HTML5 demos
- Learning graphics programming