1<img align="left" style="width:260px" src="https://github.com/raysan5/raylib/blob/master/logo/raylib_logo_animation.gif" width="288px">
  2
  3**raylib is a simple and easy-to-use library to enjoy videogames programming.**
  4
  5raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's especially well suited for prototyping, tooling, graphical applications, embedded systems and education.
  6
  7*NOTE for ADVENTURERS: 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.*
  8
  9Ready to learn? Jump to [code examples!](https://www.raylib.com/examples.html)
 10
 11---
 12
 13<br>
 14
 15[![GitHub Releases Downloads](https://img.shields.io/github/downloads/raysan5/raylib/total)](https://github.com/raysan5/raylib/releases)
 16[![GitHub Stars](https://img.shields.io/github/stars/raysan5/raylib?style=flat&label=stars)](https://github.com/raysan5/raylib/stargazers)
 17[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/raysan5/raylib/5.5)](https://github.com/raysan5/raylib/commits/master)
 18[![GitHub Sponsors](https://img.shields.io/github/sponsors/raysan5?label=sponsors)](https://github.com/sponsors/raysan5)
 19[![Packaging Status](https://repology.org/badge/tiny-repos/raylib.svg)](https://repology.org/project/raylib/versions)
 20[![License](https://img.shields.io/badge/license-zlib%2Flibpng-blue.svg)](LICENSE)
 21
 22[![Discord Members](https://img.shields.io/discord/426912293134270465.svg?label=Discord&logo=discord)](https://discord.gg/raylib)
 23[![Reddit Static Badge](https://img.shields.io/badge/-r%2Fraylib-red?style=flat&logo=reddit&label=reddit)](https://www.reddit.com/r/raylib/)
 24[![Youtube Subscribers](https://img.shields.io/youtube/channel/subscribers/UC8WIBkhYb5sBNqXO1mZ7WSQ?style=flat&label=Youtube&logo=youtube)](https://www.youtube.com/c/raylib)
 25[![Twitch Status](https://img.shields.io/twitch/status/raysan5?style=flat&label=Twitch&logo=twitch)](https://www.twitch.tv/raysan5)
 26
 27[![Build Windows](https://github.com/raysan5/raylib/actions/workflows/build_windows.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_windows.yml)
 28[![Build Linux](https://github.com/raysan5/raylib/actions/workflows/build_linux.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_linux.yml)
 29[![Build macOS](https://github.com/raysan5/raylib/actions/workflows/build_macos.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_macos.yml)
 30[![Build WebAssembly](https://github.com/raysan5/raylib/actions/workflows/build_webassembly.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_webassembly.yml)
 31
 32[![Build CMake](https://github.com/raysan5/raylib/actions/workflows/build_cmake.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_cmake.yml)
 33[![Build examples Windows](https://github.com/raysan5/raylib/actions/workflows/build_examples_windows.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_examples_windows.yml)
 34[![Build examples Linux](https://github.com/raysan5/raylib/actions/workflows/build_examples_linux.yml/badge.svg)](https://github.com/raysan5/raylib/actions/workflows/build_examples_linux.yml)
 35
 36features
 37--------
 38  - **NO external dependencies**, all required libraries are [included into raylib](https://github.com/raysan5/raylib/tree/master/src/external)
 39  - Multiple platforms supported: **Windows, Linux, MacOS, RPI, Android, HTML5... and more!**
 40  - Written in plain C code (C99) using PascalCase/camelCase notation
 41  - Hardware accelerated with OpenGL: **1.1, 2.1, 3.3, 4.3, ES 2.0, ES 3.0**
 42  - **Unique OpenGL abstraction layer** (usable as standalone module): [rlgl](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)
 43  - **Software Renderer** backend (no OpenGL required!): [rlsw](https://github.com/raysan5/raylib/blob/master/src/external/rlsw.h)
 44  - Multiple **Fonts** formats supported (TTF, OTF, FNT, BDF, sprite fonts)
 45  - Multiple texture formats supported, including **compressed formats** (DXT, ETC, ASTC)
 46  - **Full 3D support**, including 3D Shapes, Models, Billboards, Heightmaps and more!
 47  - Flexible Materials system, supporting classic maps and **PBR maps**
 48  - **Animated 3D models** supported (skeletal bones animation) (IQM, M3D, glTF)
 49  - Shaders support, including model shaders and **postprocessing** shaders
 50  - **Powerful math module** for Vector, Matrix and Quaternion operations: [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h)
 51  - Audio loading and playing with streaming support (WAV, QOA, OGG, MP3, FLAC, XM, MOD)
 52  - **VR stereo rendering** support with configurable HMD device parameters
 53  - Huge examples collection with [+140 code examples](https://github.com/raysan5/raylib/tree/master/examples)!
 54  - Bindings to [+70 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
 55  - **Free and open source**
 56
 57basic example
 58--------------
 59This is a basic raylib example, it creates a window and draws the text `"Congrats! You created your first window!"` in the middle of the screen. Check this example [running live on web here](https://www.raylib.com/examples/core/loader.html?name=core_basic_window).
 60```c
 61#include "raylib.h"
 62
 63int main(void)
 64{
 65    InitWindow(800, 450, "raylib example - basic window");
 66
 67    while (!WindowShouldClose())
 68    {
 69        BeginDrawing();
 70            ClearBackground(RAYWHITE);
 71            DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
 72        EndDrawing();
 73    }
 74
 75    CloseWindow();
 76
 77    return 0;
 78}
 79```
 80
 81build and installation
 82----------------------
 83
 84raylib binary releases for Windows, Linux, macOS, Android and HTML5 are available at the [Github Releases page](https://github.com/raysan5/raylib/releases).
 85
 86raylib is also available via multiple package managers on multiple OS distributions.
 87
 88#### Installing and building raylib on multiple platforms
 89
 90[raylib Wiki](https://github.com/raysan5/raylib/wiki#development-platforms) contains detailed instructions on building and usage on multiple platforms.
 91
 92 - [Working on Windows](https://github.com/raysan5/raylib/wiki/Working-on-Windows)
 93 - [Working on macOS](https://github.com/raysan5/raylib/wiki/Working-on-macOS)
 94 - [Working on GNU Linux](https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux)
 95 - [Working on Chrome OS](https://github.com/raysan5/raylib/wiki/Working-on-Chrome-OS)
 96 - [Working on FreeBSD](https://github.com/raysan5/raylib/wiki/Working-on-FreeBSD)
 97 - [Working on Raspberry Pi](https://github.com/raysan5/raylib/wiki/Working-on-Raspberry-Pi)
 98 - [Working for Android](https://github.com/raysan5/raylib/wiki/Working-for-Android)
 99 - [Working for Web (HTML5)](https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5))
100 - [Working anywhere with CMake](https://github.com/raysan5/raylib/wiki/Working-with-CMake)
101
102*Note that the Wiki is open for edit, if you find some issues while building raylib for your target platform, feel free to edit the Wiki or open an issue related to it.*
103
104#### Setup raylib with multiple IDEs
105
106raylib has been developed on Windows platform using [Notepad++](https://notepad-plus-plus.org/) and [MinGW GCC](https://www.mingw-w64.org/) compiler but it can be used with other IDEs on multiple platforms.
107
108[Projects directory](https://github.com/raysan5/raylib/tree/master/projects) contains several ready-to-use **project templates** to build raylib and code examples with multiple IDEs.
109
110*Note that there are lots of IDEs supported, some of the provided templates could require some review, so please, if you find some issue with a template or you think they could be improved, feel free to send a PR or open a related issue.*
111
112learning and docs
113------------------
114
115raylib is designed to be learned using [the examples](https://github.com/raysan5/raylib/tree/master/examples) as the main reference. There is no standard API documentation but there is a [**cheatsheet**](https://www.raylib.com/cheatsheet/cheatsheet.html) containing all the functions available on the library a short description of each one of them, input parameters and result value names should be intuitive enough to understand how each function works.
116
117Some additional documentation about raylib design can be found in [raylib GitHub Wiki](https://github.com/raysan5/raylib/wiki). Here are the relevant links:
118
119 - [raylib cheatsheet](https://www.raylib.com/cheatsheet/cheatsheet.html)
120 - [raylib architecture](https://github.com/raysan5/raylib/wiki/raylib-architecture)
121 - [raylib library design](https://github.com/raysan5/raylib/wiki)
122 - [raylib examples collection](https://github.com/raysan5/raylib/tree/master/examples)
123 - [raylib games collection](https://github.com/raysan5/raylib-games)
124
125
126contact and networks
127---------------------
128
129raylib is present in several networks and raylib community is growing everyday. If you are using raylib and enjoying it, feel free to join us in any of these networks. The most active network is our [Discord server](https://discord.gg/raylib)! :)
130
131 - Webpage: [https://www.raylib.com](https://www.raylib.com)
132 - Discord: [https://discord.gg/raylib](https://discord.gg/raylib)
133 - X: [https://x.com/raysan5](https://x.com/raysan5)
134 - BlueSky: [https://bsky.app/profile/raysan5](https://bsky.app/profile/raysan5.bsky.social)
135 - Twitch:  [https://www.twitch.tv/raysan5](https://www.twitch.tv/raysan5)
136 - Reddit:  [https://www.reddit.com/r/raylib](https://www.reddit.com/r/raylib)
137 - Patreon: [https://www.patreon.com/raylib](https://www.patreon.com/raylib)
138 - YouTube: [https://www.youtube.com/channel/raylib](https://www.youtube.com/c/raylib)
139
140contributors
141------------
142
143<a href="https://github.com/raysan5/raylib/graphs/contributors">
144  <img src="https://contrib.rocks/image?repo=raysan5/raylib&max=800&columns=24&anon=0" />
145</a>
146
147license
148-------
149
150raylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.
151
152raylib uses internally some libraries for window/graphics/inputs management and also to support different file formats loading, all those libraries are embedded with and are available in [src/external](https://github.com/raysan5/raylib/tree/master/src/external) directory. Check [raylib dependencies LICENSES](https://github.com/raysan5/raylib/wiki/raylib-dependencies) on [raylib Wiki](https://github.com/raysan5/raylib/wiki) for details.