A simple and easy-to-use library to enjoy videogames programming http://www.raylib.com
  • C 86.6%
  • Lua 7.4%
  • Makefile 2.3%
  • Zig 1.2%
  • CMake 1%
  • Other 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-03-14 08:12:35 +00:00
cmake CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
examples Include mini_al directly, no separate module 2019-02-12 12:18:01 +01:00
games Added new game: Cat vs Roomba 2019-01-27 15:16:10 +01:00
logo New icon generation 2018-09-25 10:41:15 +02:00
projects Updated audio library: mini_al -> miniaudio 2019-03-12 11:54:45 +01:00
src Remove comment 2019-03-13 10:26:33 +01:00
templates Update shell.html 2019-01-08 21:05:23 +01:00
.gitignore Remove compiled libraylib.a 2019-02-18 23:36:29 -05:00
.travis.yml Travis CI: bump installed wayland-protocols to v1.15 2019-01-08 09:03:22 +01:00
appveyor.yml CI: Build with all optional formats enabled 2018-07-29 12:13:01 +02:00
CHANGELOG Corrected timing typo 2018-07-28 18:13:19 +02:00
CMakeLists.txt CMake: Major cleanup to support find_package(raylib) 2018-07-29 12:35:35 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-07-23 13:37:25 +02:00
CONTRIBUTING.md Remove raylib-rust 2019-01-16 22:10:37 +11:00
HELPME.md enjoy! 2018-09-18 21:34:02 +02:00
HISTORY.md WARNING: Renamed module: audio -> raudio 2019-01-10 16:32:40 +01:00
LICENSE.md Update LICENSE.md 2018-10-13 16:03:42 +02:00
raylib.pc.in CMake: pkg-config: fix usage for RedHat-like systems (#728) 2019-01-19 13:52:55 +01:00
raylib.rc.data Review resources naming 2018-11-19 15:18:11 +01:00
README.md Fixes the typos introduced when editing the README. 2019-03-14 08:12:35 +00:00
ROADMAP.md Updated common documents 2018-07-16 02:07:48 +02:00

raylib is a simple and accessible library that makes videogames programming enjoyable.

raylib is heavily inspired by the Borland Graphics Interface and the XNA Framework.

raylib is especially well suited for prototyping, tooling, graphical applications, embedded systems and education.

NOTE for ADVENTURERS: raylib is a programming library for enjoying videogames programming. There will never be a fancy interface, visual helpers, auto-debugging, or anything else that detracts from the art and practice of programming videogames. raylib augments your C or C++ runtime with a comprehensive API that makes it easy to build videogames from scratch.

Ready to learn? Jump to the code examples!

Build Status https://ci.appveyor.com/api/projects/status/github/raysan5/raylib?svg=true Chat on Discord License Twitter URL

Features

  • No external dependencies. All required libraries are bundled into raylib.
  • Crossplatform. Supports Windows, Linux, MacOS, Android... and many more!
  • Written in plain C code. Uses C99, with PascalCase/camelCase notation.
  • Hardware accelerated with OpenGL (1.1, 2.1, 3.3 or ES 2.0).
  • Unique OpenGL abstraction layer (usable as a standalone module): rlgl.
  • Multiple font format support (XNA fonts, AngelCode fonts and TTF).
  • Outstanding texture formats support, including compressed formats (DXT, ETC and ASTC).
  • Full 3D support, including 3D Shapes, Models, Billboards, Heightmaps and more!
  • Flexible materials system, supporting classic maps and PBR maps.
  • Custom shaders, including model and postprocessing shaders.
  • Powerful math module for vector, matrix and quaternion operations: raymath.
  • Support for loading, playing and streaming audio (WAV, OGG, MP3, FLAC, XM and MOD).
  • VR stereo rendering support with configurable HMD device parameters.
  • Language bindings for Lua (raylib-lua), Go (raylib-go) and more!

raylib has its own core module (derived from the outstanding GLFW3 library), bundled with raylib as the rglfw module (avoiding external dependencies).

raylib also has its own audio module, based on the amazing mini_al audio library, provided as a single file (header-only), and supporting multiple platforms and various audio backends.

raylib relies internally on multiple single-file, header-only libraries that support loading and saving multiple file formats. All of those libraries are bundled with raylib, and are available in the src/external directory.

On Android, the native_app_glue module (provided by the Android NDK) and native Android libraries are used to manage the window and context, inputs and the activity life cycle.

On Raspberry Pi, the Videocore API and EGL libraries are used for window and context management, and for reading raw inputs.

Building and Installation

Binary releases for Windows, Linux and macOS are available at the Github Releases page. raylib is also available via multiple package managers, across multiple OS distributions. For more info, check the raylib Wiki.

If you wish to build raylib yourself, the raylib Wiki also contains detailed instructions on how to approach that.

raylib has been developed exclusively using two tools:

Those tools are recommended for raylib development, and are the tools that my students use.

Contact

If you use raylib and enjoy it, please let me know.

If you are able to contribute, then please helpme!

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. See the LICENSE file for further details.