Home › AI Game Development › raylib
What is raylib? The simple and easy-to-use library to enjoy videogames programming
raylib is a simple and easy-to-use library to enjoy videogames programming. Written in plain C, with no external dependencies, it is built for prototyping, tooling, graphical applications, embedded systems and education — just coding, in the most pure spartan-programmers way.
raylib in one paragraph
raylib (github.com/raysan5/raylib) is a simple and easy-to-use library to enjoy videogames programming. It is highly inspired by the Borland BGI graphics library and by the XNA framework, and it is especially well suited for prototyping, tooling, graphical applications, embedded systems and education. The project’s own note for adventurers sets the tone: raylib is a programming library to enjoy videogames programming — no fancy interface, no visual helpers, no debug button, just coding in the most pure spartan-programmers way.
raylib was created in October 2013 and passed 35,000 GitHub stars by December 2026, with its most recent push in December 2026. It is free and open source under the zlib/libpng licence. It has no external dependencies — all required libraries are included in the repository — and it runs on Windows, Linux, macOS, Raspberry Pi, Android, HTML5 and more.
What raylib actually does
raylib is a code library, not an editor: you write C, and it gives you a window, input, graphics, audio and maths. Its work breaks down into four parts.
1. A window, graphics and input with no dependencies
raylib has no external dependencies, and all required libraries are included in the repository. It is written in plain C code (C99), hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3, ES 2.0 and ES 3.0), with its own unique OpenGL abstraction layer and a software renderer backend for when no OpenGL is available. Multiple platforms are supported: Windows, Linux, macOS, Raspberry Pi, Android, HTML5 and more.
2. Full 2D and 3D, with models, shaders and audio
raylib offers full 3D support, including 3D shapes, models, billboards and heightmaps, a flexible materials system supporting classic and PBR maps, animated 3D models with skeletal bones animation and GPU skinning (IQM, M3D and glTF), and shader support including model shaders and postprocessing shaders. It supports multiple texture formats including compressed formats (DXT, ETC, ASTC) and multiple font formats (TTF, OTF, FNT, BDF and sprite fonts). Audio loading and playing comes with streaming support for WAV, QOA, OGG, MP3, FLAC, XM and MOD, and there is VR stereo rendering support with configurable headset parameters.
3. A huge examples collection, in 70+ languages
raylib ships a huge examples collection with over 220 code examples, and bindings to over 70 programming languages. A basic example creates a window and draws text in the middle of the screen in a handful of lines, and the examples can be tried live on the web from the raylib site. There is also a powerful maths module for vector, matrix and quaternion operations.
4. A community around it
The raylib community meets on Discord and Reddit, with a YouTube channel and Twitch streams from the project’s author. The project is built and tested on Windows, Linux, macOS and WebAssembly through continuous integration, and releases are published on GitHub.
What it costs
raylib itself is free — zlib/libpng licence, no subscription, no royalties. There is nothing to buy to use it, and the only costs around a raylib project are your time, your own tooling, and whatever you spend publishing and promoting the finished game.
Who raylib is for
C programmers learning games
You want to learn how games actually work, line by line. A basic raylib example is a few lines of C that open a window and draw text — no editor hiding the code from you.
Prototyping developers
You need a game idea on screen fast. raylib is built for prototyping: a window, input and graphics in minutes, with over 220 examples to copy from.
Educators and students
You teach programming through games, or learn it that way. raylib is especially well suited for education, and its spartan, code-first style shows how everything works.
Embedded and small-device developers
You build for Raspberry Pi, embedded systems or the web. raylib runs on Windows, Linux, macOS, Raspberry Pi, Android and HTML5, with a software renderer when there is no OpenGL.
raylib at a glance
- Project: raysan5/raylib — “A simple and easy-to-use library to enjoy videogames programming”
- Licence: zlib/libpng — free and open source
- Popularity: over 35,000 GitHub stars by December 2026 (created October 2013)
- Language: C (C99), with bindings to over 70 programming languages
- Platforms: Windows, Linux, macOS, Raspberry Pi, Android, HTML5 and more
- Graphics: hardware accelerated OpenGL 1.1/2.1/3.3/4.3 and ES 2.0/3.0, plus a software renderer backend
- Examples: over 220 code examples, with live web versions on the raylib site
- Dependencies: none — all required libraries are included in the repository
Honest limits
raylib’s limits are stated in its own README, by design, for code simplicity. There is a single window with a single OpenGL context by default and no multi-window support; window resize and move stops the rendering loop on platforms supporting a window; render textures are flipped vertically, as provided by OpenGL, and it is up to the user to draw them flipped to the screen; font rasterisation has lower quality than alternatives like FreeType2, HarfBuzz or Slug; and text drawing does not support right-to-left text, ligatures or emojis. The wider limit is the style itself: there is no fancy interface, no visual helpers and no debug button — if you want an editor, raylib is not it.
Want a game without doing the setup?
raylib is one of the libraries behind our AI game development service: we build your game instead of from scratch, playtest everything by hand, and hand over a finished game with its source code. Mini-games from £499, full 2D games from £1,499, 3D games from £2,999. You bring the idea; there are no surprise bills.
Have a game idea?
Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.