raylib C99 game and graphics library with 2D, 3D and audio helpers.
Overview raylib is a C99 programming library for building games and interactive graphics. It combines window and input handling, audio, and 2D and 3D drawing without requiring an editor-driven project workflow.[2]
Contents Programming workflow A raylib application is assembled in code: initialize the environment, load resources, update application state and issue drawing calls. The project's learning material emphasizes small examples and a compact API reference. This suits teaching and prototypes where the developer wants to see the program's structure directly; it does not provide a visual scene editor that assembles gameplay for the author.[2]
Rendering and platform scope The library includes textures, fonts, shaders, models, animation and mathematical helpers. Its documented targets include Windows, Linux, macOS, Raspberry Pi, Android and HTML5. Shared calls reduce platform-specific work, but a supported target still needs its build environment and suitable graphics support. Model loading is a rendering capability, not a promise that another engine's scenes, scripts or materials will behave unchanged.[2] [3]
Design boundaries The maintainers document a default single-window, single-graphics-context design and limitations in text handling, including right-to-left layout and ligatures. Those constraints matter for tools with several independent windows or complex multilingual interfaces. A project should evaluate these requirements before treating raylib as a general desktop application framework. Language bindings are separate integrations rather than a change to the core C API.[3]
Licensing raylib uses the permissive zlib/libpng-style license. Commercial use and modification are allowed subject to its notice and attribution-of-origin conditions. This describes raylib itself; assets, bundled components and any additional libraries still require their own license review.[1]
Substitution assessment raylib is a candidate alternative to SFML for code-first games that need drawing, audio and input. The substitution is architectural rather than source-compatible: C-oriented raylib calls replace SFML's C++ interfaces. Built-in 3D helpers may be useful, while windowing and text requirements can make the choice less suitable. No port or performance comparison was tested for this assessment.[2] [3] [4]
References raylib license Permissions and redistribution conditions
vendor · retrieved 2026-10-07 raylib overview C99 library, platforms, examples and rendering
vendor · retrieved 2026-10-07 raylib README Features and limitations by design
vendor · retrieved 2026-10-07 SFML overview Modules and platform support
vendor · retrieved 2026-10-07 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.