https://github.com/raysan5/raylib Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} raysan5 / raylib Public * * Notifications * Fork 1.6k * Star 13.7k A simple and easy-to-use library to enjoy videogames programming www.raylib.com License Zlib license 13.7k stars 1.6k forks Star Notifications * Code * Issues 16 * Pull requests 5 * Discussions * Actions * Wiki * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Wiki * Security * Insights raysan5/raylib This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 3 branches 21 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/r] Use Git or checkout with SVN using the web URL. [gh repo clone raysan] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @o3o o3o update bindbd-raylib3 to raylib 4.5 (#3157) ... 334e96d Jul 6, 2023 update bindbd-raylib3 to raylib 4.5 (#3157) 334e96d Git stats * 6,535 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Update webassembly.yml March 13, 2023 11:44 cmake Enhanced cmake part for OpenBSD (#3086) May 28, 2023 14:49 examples Update examples_template.c to raylib 4.5 (#3156) July 5, 2023 16:39 logo Update raylib_logo_animation.gif April 20, 2021 12:29 parser Added ImageRotate (#3078) May 24, 2023 09:22 projects Added ImageRotate (#3078) May 24, 2023 09:22 src Reverted MeasureTextEx() change #3105 July 6, 2023 12:31 .gitignore added LUA output format for parser; added Makefile for raylib_parser; ... November 11, 2021 18:12 BINDINGS.md update bindbd-raylib3 to raylib 4.5 (#3157) July 6, 2023 12:32 CHANGELOG Update CHANGELOG March 17, 2023 00:05 CMakeLists.txt removed glfwSetWindowPos on InitWindow (#2732) October 2, 2022 10:46 CMakeOptions.txt ADDED: Optional support for PNM images (.ppm, .pgm) November 29, 2022 10:58 CONTRIBUTING.md Update CONTRIBUTING.md April 15, 2021 12:31 CONVENTIONS.md fix: small things in CONVENTIONS.md (#2536) June 23, 2022 08:03 FAQ.md Fix a link in the FAQ (#3082) May 27, 2023 09:27 HISTORY.md WingBGI now leads to the correct website! (#3033) April 29, 2023 20:34 LICENSE Update year to 2023 (#2846) January 1, 2023 12:55 README.md Update README.md May 18, 2023 12:00 ROADMAP.md Update ROADMAP.md March 14, 2023 13:06 build.zig Reverted commits that deprecated the build.zig files, and added a not... May 15, 2023 11:23 raylib.pc.in Update raylib.pc.in October 26, 2021 09:13 View code [ ] features basic example build and installation Installing and building raylib on multiple platforms Setup raylib with multiple IDEs learning and docs contact and networks license README.md [raylib_logo_animation] 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 and it's specially well suited for prototyping, tooling, graphical applications, embedded systems and education. 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. Ready to learn? Jump to code examples! --------------------------------------------------------------------- GitHub Releases Downloads GitHub Stars GitHub commits since tagged version GitHub Sponsors Packaging Status License Discord Members Subreddit Subscribers Youtube Subscribers Twitch Status Windows Linux macOS Android WebAssembly CMakeBuilds Windows Examples Linux Examples features * NO external dependencies, all required libraries are bundled into raylib * Multiple platforms supported: Windows, Linux, MacOS, RPI, Android, HTML5... and more! * Written in plain C code (C99) using PascalCase/camelCase notation * Hardware accelerated with OpenGL (1.1, 2.1, 3.3, 4.3 or ES 2.0) * Unique OpenGL abstraction layer (usable as standalone module): rlgl * Multiple Fonts formats supported (TTF, Image fonts, AngelCode fonts) * Multiple texture formats supported, including compressed formats (DXT, ETC, ASTC) * Full 3D support, including 3D Shapes, Models, Billboards, Heightmaps and more! * Flexible Materials system, supporting classic maps and PBR maps * Animated 3D models supported (skeletal bones animation) (IQM) * Shaders support, including model 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 +60 programming languages! * Free and open source. basic example This is a basic raylib example, it creates a window and it draws the text "Congrats! You created your first window!" in the middle of the screen. Check this example running live on web here. #include "raylib.h" int main(void) { InitWindow(800, 450, "raylib [core] example - basic window"); while (!WindowShouldClose()) { BeginDrawing(); ClearBackground(RAYWHITE); DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); EndDrawing(); } CloseWindow(); return 0; } build and installation raylib binary releases for Windows, Linux, macOS, Android and HTML5 are available at the Github Releases page. raylib is also available via multiple package managers on multiple OS distributions. Installing and building raylib on multiple platforms raylib Wiki contains detailed instructions on building and usage on multiple platforms. * Working on Windows * Working on macOS * Working on GNU Linux * Working on Chrome OS * Working on FreeBSD * Working on Raspberry Pi * Working for Android * Working for Web (HTML5) * Working anywhere with CMake 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. Setup raylib with multiple IDEs raylib has been developed on Windows platform using Notepad++ and MinGW GCC compiler but it can be used with other IDEs on multiple platforms. Projects directory contains several ready-to-use project templates to build raylib and code examples with multiple IDEs. 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. learning and docs raylib is designed to be learned using the examples as the main reference. There is no standard API documentation but there is a cheatsheet 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. Some additional documentation about raylib design can be found in raylib GitHub Wiki. Here are the relevant links: * raylib cheatsheet * raylib architecture * raylib library design * raylib examples collection * raylib games collection contact and networks raylib 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! :) * Webpage: https://www.raylib.com * Discord: https://discord.gg/raylib * Twitter: https://www.twitter.com/raysan5 * Twitch: https://www.twitch.tv/raysan5 * Reddit: https://www.reddit.com/r/raylib * Patreon: https://www.patreon.com/raylib * YouTube: https://www.youtube.com/channel/raylib license raylib 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 for further details. raylib 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 directory. Check raylib dependencies LICENSES on raylib Wiki for details. About A simple and easy-to-use library to enjoy videogames programming www.raylib.com Topics android c linux raspberry-pi iot gamedev embedded programming opengl game-engine graphics game-development raylib webassembly wasm videogames hacktoberfest Resources Readme License Zlib license Stars 13.7k stars Watchers 257 watching Forks 1.6k forks Report repository Releases 21 raylib v4.5 Latest Mar 18, 2023 + 20 releases Sponsor this project Sponsor Learn more about GitHub Sponsors Contributors 441 * @raysan5 * @a3f * @victorfisac * @kd7tck * @JeffM2501 * @mackron * @ChrisDill * @jubalh * @RobLoach * @RDR8 * @object71 + 430 contributors Languages * C 82.6% * Lua 10.0% * Makefile 3.3% * CMake 1.5% * Shell 0.8% * HTML 0.8% * Other 1.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.