# raylib

C99 game and graphics library with 2D, 3D and audio helpers\.

ID: Q568 · Revision: 615

Type: software · License: zlib/libpng[^ray-license] · Status: active

Website: https://www.raylib.com/



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\.[^ray-home]

## 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\.[^ray-home]

## 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\.[^ray-home][^ray-readme]

## 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\.[^ray-readme]

## 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\.[^ray-license]

## Substitution assessment

raylib is a candidate alternative to [SFML](/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\.[^ray-home][^ray-readme][^sfml-home]

## Capabilities and substitutions

### Code\-first 2D/3D graphics — supported

Drawing and resource helpers are exposed through the C API\.[^ray-home]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android, HTML5, Raspberry Pi · Region: Target toolchains, browser and hardware support apply

### Complex text layout — limited

The maintainers document RTL and ligature limitations\.[^ray-readme]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android, HTML5, Raspberry Pi · Region: Target toolchains, browser and hardware support apply

### [Substitute for SFML](/sfml) — limited

Candidate for programmed 2D games with input and audio; requires an API rewrite and evaluation of text/window constraints\.[^ray-home][^ray-readme][^sfml-home]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android, HTML5, Raspberry Pi · Region: Target toolchains, browser and hardware support apply

## References

[^ray-license]: [raylib license](<https://github.com/raysan5/raylib/blob/master/LICENSE>) — Permissions and redistribution conditions (vendor; retrieved 2026-10-07T07:00:28Z)

[^ray-home]: [raylib overview](<https://www.raylib.com/>) — C99 library, platforms, examples and rendering (vendor; retrieved 2026-10-07T06:53:51Z)

[^ray-readme]: [raylib README](<https://github.com/raysan5/raylib>) — Features and limitations by design (vendor; retrieved 2026-10-07T06:54:01Z)

[^sfml-home]: [SFML overview](<https://www.sfml-dev.org/>) — Modules and platform support (vendor; retrieved 2026-10-07T06:53:51Z)

Source revision: https://substitutefor.net/entities/Q568?revision=615
