📰 Title: | raylib | 🕹️ / 🛠️ Type: | Tool |
---|---|---|---|
🗃️ Genre: | Development | 🚦 Status: | 04. Released (status) |
🏷️ Category: | Development ➤ Framework & Tool ➤ Prototyping | 🌍️ Browser version: | |
🔖 Tags: | Development; Library; Prototyping; RAD; 2D & 3D engine; raylib; 3D VR | 📦️ Package Name: | libraylib, raylib |
🐣️ Approx. start: | 2013-10-20 | 📦️ Arch package: | |
🐓️ Latest: | 2023-03-29 | 📦️ RPM package: | |
📍️ Version: | Latest: 4.5 / Dev: 17c443e | 📦️ Deb package: | |
🏛️ License type: | 🕊️ Libre | 📦️ Flatpak package: | |
🏛️ License: | zlib | 📦️ AppImage package: | |
🏝️ Perspective: | Third person | 📦️ Snap package: | |
👁️ Visual: | 2D & 3D | ⚙️ Generic binary: | |
⏱️ Pacing: | Real Time | 📄️ Source: | |
👫️ Played: | Single | 📱️ PDA support: | |
🎖️ This record: | 🕳️ Not used: | ||
🎀️ Game design: | 👫️ Contrib.: | goupildb | |
🎰️ ID: | 16133 | 🐛️ Created: | 2021-11-10 |
🐜️ Updated: | 2023-04-16 |
[en]: | A libre, multi-platform library for game prototyping. It was strongly inspired by the Borland BGI graphics library and the XNA framework. It has no interface or debugging tools, as it is intended to be integrated directly into the code. It has no external dependencies, and supports more than 50 programming languages, OpenGL hardware acceleration, 3D, shaders, VR stereo rendering, sound (load/playback) and has powerful font and math modules. It does not provide typical API documentation or a lot of tutorials, the best way to learn to code is to read code. | [fr]: | Une bibliothèque libre et multi-plateforme destinée au prototypage de jeux. Elle a été fortement inspirée par la bibliothèque graphique Borland BGI et le framework XNA. Elle ne dispose ni d'interface ni d'outils de débogage, car elle est destinée à être intégrée directement dans le code. Elle ne comporte aucune dépendance externe, et supporte notamment plus de 50 langages de programmation, l'accélération matérielle OpenGL, le 3D, les shaders, le rendu stéréo VR, le son (chargement/lecture) et dispose de puissants modules de polices et de mathématique. Elle ne fournit pas de documentation typique de l'API ou d'un grand nombre de tutoriels, la meilleure façon d'apprendre à coder est de lire du code. |
---|
💡 Lights on: | 🦺️ Work in progress: | ||
---|---|---|---|
📰 What's new?: | 🪙️ Major upgrade | 💥️ New version published (to be updated): | |
🎨️ Significant improvement: | 🚧️ Some work remains to be done: | ||
🕳️ Not used2: | 👔️ Already shown: |
🦝️ From Users: (202202), (201702), (202109),
📰 Progress: 💥️ GameFromScratch (4.5/202303),
🕯️ How To: (2.0/201901), (202101),
🕹️ Gameplay: (202101), (202006), [fr](201708),
🎮️ Showcase: (201512), (202102), (202107),
🏡️ Website & videos
[Homepage] [Dev site] [Features/About] [Screenshots] [Videos cv(4.5/202303) pv(4.2/202208) pv(4.0/202111) t(202xxx) ts(202xxx) gd(202xxx) gu(202202) gu(201702) gu(202109) id(202xxx) r(202xxx) lp(202xxx) d(201512) d(202102) d(202107) d(202010) d(202001) d(202104) ht(2.0/201901) ht(202101) g(202101) g(202006) g(202005) g[fr](201708) g[de](202xxx) g[ru](202xxx) g[pl](202xxx) g[cz](202xxx) g[sp](202xxx) g[pt](202xxx) g[it](202xxx) g[tr](202xxx)] [WIKI] [FAQ] [RSS] [Changelog 1 2 3]
💰 Commercial: [Support their work (Donate)] [Patreon] [Ko-fi] [Itch.io]
🍩️ Resources
• (empty):
🛠️ Technical informations
[Open Hub] [PCGamingWiki] [MobyGames] [Showcase (on itch.io)]
🐘 Social
Devs (raylib Team [fr] [en]): [Site 1 2] [Chat] [mastodon] [twitter] [PeerTube] [YouTube] [PressKit] [Interview 1(202xxx) 2(202xxx)]
Devs (Ray (raysan5) [fr] [en]): [Site 1 2] [Chat] [mastodon] [twitter] [PeerTube] [YouTube] [PressKit] [Interview 1(202xxx) 2(202xxx)]
The Project: [Blog] [Chat] [Forums] [mastodon] [twitter] [PeerTube] [YouTube] [PressKit] [reddit] [Discord]
🐝️ Related
[Wikipedia (Raylib) [fr] [en] [de]]
📦️ Misc. repositories
[Repology] [pkgs.org] [Arch Linux / AUR] [openSUSE] [Debian/Ubuntu] [Flatpak] [AppImage] [Snap] [PortableLinuxGames]
🕵️ Reviews
[HowLongToBeat] [metacritic] [OpenCritic] [iGDB] [GameFromScratch (4.0/202111)]
🕊️ Source of this Entry: [Boiling Steam on Mastodon (20211110)]
🐘 Social Networking Update (on Mastodon)
🛠️ Title: raylib
🦊️ What's: A libre library for game prototyping
🏡️ https://www.raylib.com
🐣️ https://github.com/raysan5/raylib
🔖 #LinuxGameDev #Library #Programming #Prototyping
📦️ #Libre #Bin #Arch #RPM
📖 Our entry: http://www.lebottindesjeuxlinux.tuxfamily.org/en/online/lights-on/
🥁️ Update: 4.5
⚗️ Major upgrade 🪙️
📌️ Changes: https://github.com/raysan5/raylib/releases/tag/4.5.0
🐘 From: https://mastodon.gamedev.place/@GameFromScratch/110050553429492163
💥️📰 https://watch.thekitty.zone/RPjaUf_sdQw
🦝️ https://watch.thekitty.zone/kPWShsel6vo
🦝️ https://watch.thekitty.zone/J4eLE9YYQp0
🎮️ https://watch.thekitty.zone/2QDrTrDEyX0
🎮️ https://watch.thekitty.zone/jYCSkodrg6w
🕶️ A schematic view of the structure of this library divided into functionalities
raylib is a libre, multi-platform library for game prototyping. It was strongly inspired by the Borland BGI graphics library and the XNA framework. It has no interface or debugging tools, as it is intended to be integrated directly into the code. It has no external dependencies, and supports more than 50 programming languages, OpenGL hardware acceleration, 3D, shaders, VR stereo rendering, sound (load/playback) and has powerful font and math modules. It does not provide typical API documentation or a lot of tutorials, the best way to learn to code is to read code.
📕🐧"A libre library for game prototyping"🐧📕
raylib is a simple and easy-to-use library to enjoy videogames programming.
NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no gui tools or editors... just coding in pure spartan-programmers way. Are you ready to enjoy coding?
raylib learning resources
raylib does not provide the typical API documentation or a big set of tutorials. The library is designed to be minimalistic and be learned just from a cheatsheet with all required functionality and a big collection of examples to see how to use that functionality. Best way to learn to code is reading code.
Apart from those materials, there are plenty of tutorials created by the amazing raylib community. It's highly recommended to join the friendly raylib Discord Community to stay up to date of latest raylib news and ask for help when required!
raylib awards
raylib has received several recognitions in the last years and many people have written about the library.
raylib is a simple and easy-to-use library to enjoy videogames programming.

raylib is highly inspired by Borland BGI graphics lib and by XNA framework. Do you want to see all functions available in raylib? Check raylib cheatsheet
raylib supported platforms
raylib supports multiple target platforms, it has been tested in the following platforms but, technically, any platform that supports C language and OpenGL graphics is valid for raylib or can be very easily ported to.
raylib language bindings
You can use raylib in multiple languages (more than 50!).
raylib extra libraries
raylib can be combined with several extra libraries for additional functionality, some of those libraries are already used internally while others are provided for user integration, most of these libraries are single-file header-only with no external dependencies.
raylib technologies tools
raylib is the base technology for raylib technologies tools! Several multiplatform portable standalone user-friendly tools have been developed using raylib and raygui. Check them out!
raylib contributions
I'm working hard on raylib but my resources are limited. If you enjoy raylib and want to help, consider a small donation or contributing to the project on GitHub. Thanks!
raylib features
☑ NO external dependencies, all required libraries included with raylib
☑ Multiplatform: Windows, Linux, MacOS, RPI, Android, HTML5... and more!
☑ Written in plain C code (C99) in PascalCase/camelCase notation
☑ Hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3 or ES 2.0)
☑ Unique OpenGL abstraction layer: rlgl
☑ Powerful Fonts module (XNA SpriteFonts, BMfonts, TTF, SDF)
☑ Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)
☑ Full 3d support for 3d Shapes, Models, Billboards, Heightmaps and more!
☑ Flexible Materials system, supporting classic maps and PBR maps
☑ Animated 3d models supported (skeletal bones animation)
☑ Shaders support, including Model shaders and Postprocessing shaders
☑ Powerful math module for Vector, Matrix and Quaternion operations: raymath
☑ Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
☑ VR stereo rendering support with configurable HMD device parameters
☑ Huge examples collection with +120 code examples!
☑ Bindings to +50 programming languages!
☑ Free and open source. Check [LICENSE].
raylib architecture
raylib is a highly modular library. Everything is contained within a small number of well defined, specific and self-contained modules, named accordingly to its primary functionality. Note that some of those modules can be used in standalone mode.
🌍️ Wikipedia:
Raylib (stylized in lowercase as raylib) is a cross-platform open-source software development library. The library is meant to create graphical applications and games. The official website introduces it as "a simple and easy-to-use library to enjoy video games programming."
The library is highly inspired by the Borland BGI graphics library and by the XNA framework and it's designed to be well suited for prototyping, tooling, graphical applications, embedded systems and education. The source code is written in plain C (C99) and it aims to be easy for beginners, distributed under a zlib/libpng OSI certified open-source license. It supports compilation to several target platforms, including Windows, Linux, macOS, FreeBSD, Android, Raspberry Pi and HTML5.
raylib has been ported to more than 50 programming languages (but most of those are not stable ports) in the form of bindings. raylib provides traditional documentation as well as a cheatsheet for a brief explanation on its functions and features.
History
raylib development started in August 2013 by Ramon Santamaria to support a game development course, focused on students with no previous coding experience and artistic profile; the library acted as a direct replacement of WinBGI. During the course, raylib was further developed based on the feedback of the students and by June 2014, the library was starting to be showcased in several game development events in Barcelona.
raylib 1.0 was released in November 2013 and it featured around 80 functions for window and inputs management, basic 2D and 3D shape drawing, texture loading and drawing, font loading, text drawing, audio system management and audio file loading and playback. The first raylib version had 8 subsequent minor releases (from raylib 1.1 to raylib 1.8), along the course of 5 years, which each introduced some new features. Some of the most notable improvements were Android, WebAssembly and Raspberry Pi support, multiple OpenGL backends, VR support and ten examples.
raylib 2.0 was released in July 2018 and removed all external dependencies from the build system. It also exposed a number of configuration options in the build system, to minimize size and increase support, supporting various continuous integration systems. Along the following two years, parts of the library were reviewed updated, and the ecosystem was built out. A single minor release, raylib 2.5, was released during this period.
raylib 3.0 was released in April 2020, refactoring many parts of the code to improve portability and bindings. It involved moving global variables to contexts, added support for custom memory allocators, a filesystem for loading assets and over 115 code examples. It received a minor update, raylib 3.5, in December 2020.
raylib 4.0 was released in November 2021, featuring a complete naming review for library consistency and coherency: function names, parameters, descriptions, comments and log output messages were reviewed. It added an internal Events Automation System and exposed game-loop control for the user. It also features some of its internal libraries to be used as standalone modules: rlgl and raymath. Zig and Odin programming languages offically support raylib. It has been the biggest update of the library to date.
Features
raylib offers the following features:
• Support for multiple platforms, including Windows, Linux, macOS, Raspberry Pi Android and HTML5
• Support for OpenGL 1.1, 2.1, 3.3, 4.3 and OpenGL ES 2.0 as backend
• Image, textures and fonts loading and drawing from several formats
• Audio loading and playing from several formats and streaming support
• Math operations for vectors, matrices, and quaternions
• 2D rendering with a camera, including automatic sprites batching
• 3D models rendering including custom shaders and postprocessing shaders
• Support for VR simulations with configurable HMD device parameters
• Support for animated as well as non-animated 3D and 2D models
• An example collection with +120 code examples
Reception and adoption
raylib was primarily intended for education on video games and graphics programming. However, since many developers found it simple and easy to use, it has been adopted in various hobbyist projects.
Multiple communities exist for raylib on services such as Reddit and Discord. On the raylib website, a handful of social networks are listed, including the personal sites of Santamaria, and communities dedicated to raylib.
GitHub lists over 120 projects on the raylib topic.
Software architecture
Modules
raylib consists of several modules that are exposed to the programmer through the API.
• core – Handles the window creation and OpenGL context initialization as well as inputs management (keyboard, mouse, gamepad and touch input)
• rlgl – Handles OpenGL backend, abstracting multiple versions to a common API. This module can be used standalone.
• shapes – Handles basic 2D shape rendering (line, rectangle, circle...) and basic collision detection
• textures – Handles image and texture loading (CPU and GPU) and management, including image manipulation functionality (crop, scale, tint, etc.)
• text – Handles fonts loading as spritesheet and text rendering. Also includes some text processing functionality (join, split, replace, etc.)
• models – Handles 3D model loading and rendering, including support for animated models
• raudio – Handles audio device management and audio file loading and playback, including streaming support. This module can be used standalone.
• raymath – Provides a set of math functions for vectors, matrices and quaternions
Bindings
raylib has bindings for more than 50 different programming languages, created by its community, including Rust, Go, C#, Lua, Python, and Nim. A list of bindings is available in the BINDINGS.md file in the raylib GitHub repository.
Many new programming languages like Beef, Odin and Ring provides binding for raylib. The Ring programming language includes raylib in the standard library.
Add-ons
The raylib community has contributed several add-ons to extend the features and connection of raylib with other libraries. Some of the modules are:
• raygui – Immediate mode GUI module for raylib
• physac – physics module intended to be used with raylib
• libpartikel – particle system module for raylib
• spine-raylib – Spine animations integration module for raylib
• cimgui-raylib – Dear Imgui integration module for raylib
Awards
raylib has won a number of awards, which it proudly displays on its website.
• In April 2019, Santamaria was awarded with the Google Open Source Peer Bonus award for contributing to the open-source ecosystem with raylib.
• In August 2020, raylib was awarded with an Epic MegaGrant by Epic Games to support its development.
• In April 2021, Santamaria was awarded with another Google Open Source Peer Bonus award for the same reasons.
Example
The following program in the C programming language uses raylib to create a white window with some centered text.
#include "raylib.h"
int main(void)
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
CloseWindow();
return 0;
}
Une bibliothèque destinée au prototypage de jeux, par la raylib Team, initié par Ray (raysan5).
En C.
raylib est une bibliothèque libre et multi-plateforme destinée au prototypage de jeux. Elle a été fortement inspirée par la bibliothèque graphique Borland BGI et le framework XNA. Elle ne dispose ni d'interface ni d'outils de débogage, car elle est destinée à être intégrée directement dans le code. Elle ne comporte aucune dépendance externe, et supporte notamment plus de 50 langages de programmation, l'accélération matérielle OpenGL, le 3D, les shaders, le rendu stéréo VR, le son (chargement/lecture) et dispose de puissants modules de polices et de mathématique. Elle ne fournit pas de documentation typique de l'API ou d'un grand nombre de tutoriels, la meilleure façon d'apprendre à coder est de lire du code.
raylib est une bibliothèque simple et facile à utiliser pour profiter de la programmation de jeux vidéo.
NOTE pour les AVENTURIERS : raylib est une bibliothèque de programmation pour pratiquer la programmation de jeux vidéo ; pas d'interface fantaisiste, pas d'aides visuelles, pas d'outils gui ou d'éditeurs... juste du codage à la manière des programmeurs spartiates. Êtes-vous prêt à vous amuser à coder ?
Ressources d'apprentissage raylib
raylib ne fournit pas la documentation typique de l'API ou un grand nombre de tutoriels. La bibliothèque est conçue pour être minimaliste et pour être apprise à partir d'une feuille de route contenant toutes les fonctionnalités requises et une grande collection d'exemples permettant de voir comment utiliser ces fonctionnalités. La meilleure façon d'apprendre à coder est de lire du code.
En dehors de ce matériel, il existe de nombreux tutoriels créés par l'incroyable communauté raylib. Il est fortement recommandé de rejoindre la sympathique communauté Discord de raylib pour rester au courant des dernières nouvelles de raylib et demander de l'aide si nécessaire !
Récompenses pour raylib
raylib a reçu plusieurs distinctions ces dernières années et de nombreuses personnes ont écrit sur cette bibliothèque.
raylib est une bibliothèque simple et facile à utiliser pour profiter de la programmation de jeux vidéo.
raylib s'inspire fortement de la librairie graphique Borland BGI et du framework XNA. Voulez-vous voir toutes les fonctions disponibles dans raylib ? Consultez le cheatsheet de raylib
Plateformes supportées par raylib
raylib supporte plusieurs plateformes cibles, il a été testé sur les plateformes suivantes mais, techniquement, toute plateforme supportant le langage C et les graphiques OpenGL est valable pour raylib ou peut être très facilement portée dessus.
Lien entre les langages de raylib
Vous pouvez utiliser raylib dans de nombreuses langages (plus de 50 !).
Bibliothèques supplémentaires raylib
raylib peut être combiné avec plusieurs bibliothèques supplémentaires pour des fonctionnalités additionnelles, certaines de ces bibliothèques sont déjà utilisées en interne tandis que d'autres sont fournies pour être intégrées par les utilisateurs. La plupart de ces bibliothèques sont des en-têtes de fichier unique sans aucune dépendance externe.
Outils des technologies raylib
raylib est la technologie de base pour les outils raylib technologies ! Plusieurs outils multiplateformes, portables, autonomes et conviviaux ont été développés à l'aide de raylib et raygui. Consultez-les !
Contributions à raylib
Je travaille dur sur raylib mais mes ressources sont limitées. Si vous appréciez raylib et voulez aider, pensez à faire un petit don ou à contribuer au projet sur GitHub. Merci !
Caractéristiques de raylib
☑ PAS de dépendances externes, toutes les bibliothèques nécessaires sont incluses dans raylib.
☑ Multiplateforme : Windows, Linux, MacOS, RPI, Android, HTML5... et plus encore !
☑ Écrit en code C simple (C99) en notation PascalCase/camelCase
☑ Accélération matérielle avec OpenGL (1.1, 2.1, 3.3, 4.3 ou ES 2.0)
☑ Couche d'abstraction OpenGL unique : rlgl
☑ Puissant module de polices (XNA SpriteFonts, BMfonts, TTF, SDF)
☑ Support exceptionnel des formats de texture, y compris les formats compressés (DXT, ETC, ASTC)
☑ Support complet de la 3d pour les formes 3d, les modèles, les tableaux d'affichage, les Heightmaps et plus encore !
☑ Système de matériaux flexible, supportant les maps classiques et les maps PBR
☑ Support des modèles 3d animés (animation des os du squelette)
☑ Support des shaders, y compris les shaders de modèle et les shaders de post-traitement.
☑ Module mathématique puissant pour les opérations vectorielles, matricielles et quaternaires : raymath.
☑ Chargement et lecture d'audio avec prise en charge du streaming (WAV, OGG, MP3, FLAC, XM, MOD)
☑ Prise en charge du rendu stéréo VR avec des paramètres de dispositif HMD configurables.
☑ Énorme collection d'exemples avec plus de 120 exemples de code !
☑ Liaisons avec +50 langages de programmation !
☑ Libre et open source. Consultez [LICENSE].
Architecture de raylib
raylib est une bibliothèque hautement modulaire. Tout est contenu dans un petit nombre de modules bien définis, spécifiques et autonomes, nommés en fonction de leur fonctionnalité principale. Notez que certains de ces modules peuvent être utilisés en mode autonome.
🌍️ Wikipedia:
Raylib une bibliothèque logicielle multiplateforme (Android, FreeBSD, HTML5 (Emscripten2), Linux, MacOS, Oculus Rift CV1 (en), Raspberry Pi, Windows, ainsi que différents systèmes embarqués) sous licence libre licence zlib/libpng3, publiée par Ramon Santamaria a partir de 2013, et orientée vers le développement d'application interactives, telles que les jeux. Elle gère 2D, 3D, (et comporte des fonctions vectorielles, quaternions, etc), audio, réseau.
Elle est développé en langage C et son API qui se veut simple et légère (< 2 Mo) comporte des bindings dans plus de 50 langages, tels que C, Go, Lua, C++, C#, PHP, Rust, D, Python, Odin, Haskell4. Elle peut utiliser les bibliothèques OpenGL jusqu'à 3.3, GL ES 2.0 pour l'accélération matérielle.