talira

A simple and easy-to-use library to enjoy videogames programming

open sourceZlibfree

raylib is a small C library for programming games and other graphical programs, written in plain C99 with no external dependencies. It handles windows, input, 2D and 3D drawing, textures, fonts, shaders, 3D models with skeletal animation, PBR materials, audio and VR stereo rendering over OpenGL 1.1 to 4.3 and OpenGL ES, or a software renderer with no OpenGL at all, on Windows, Linux, macOS, Raspberry Pi, Android and the web. It has no editor or visual tools by design: it's learned from a cheatsheet and over 220 examples, and community bindings make it usable from more than 70 languages.

Problems it solves

  • learn game programming in C without a big engine and editor
  • make a small 2D game that builds for Windows, Linux, macOS and the web
  • draw graphics and play sound from my own code with a simple library

Features

  • Plain C99 with no external dependencies
  • 2D and full 3D drawing, models and skeletal animation
  • OpenGL 1.1 to 4.3 and ES 2.0 and 3.0, or a software renderer
  • Shaders, PBR materials and post-processing
  • Audio loading and streaming (WAV, OGG, MP3, FLAC, XM, MOD)
  • Math module for vectors, matrices and quaternions
  • Over 220 examples and bindings for more than 70 languages

Limitations

  • One window with one OpenGL context by default: no multiple windows1

Alternatives

The same job

These do what raylib does.

  1. SFML Simple and Fast Multimedia Library: a cross-platform C++ API for windowing, graphics, audio and networking
  2. GDevelop Free, open source, no-code game engine
  3. Defold Free, small and truly cross-platform 2D and 3D game engine
  4. GameMaker The friendly indie game engine
  5. Construct 3 Browser-based game maker with no coding required
  6. SDL Simple DirectMedia Layer: cross-platform C library for windows, input, audio and graphics

Compare raylib with the top 3