qmetrics.net

raylib

Minimal C library for games and graphical programs

raylib screenshot

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

Overview

raylib provides windowing, 2D and 3D drawing, input, audio, and math helpers in one cohesive API inspired by classic BGI and XNA-style ergonomics. Developers write plain C without a visual editor; learning flows from examples and a concise cheatsheet rather than large formal API manuals.

Rendering uses OpenGL acceleration with an internal rlgl abstraction, optional software backend rlsw, and support for compressed textures, PBR materials, skeletal animation formats, shaders, and VR stereo output. Audio can stream common file formats. The raymath module covers vectors, matrices, and quaternions.

Binary releases and package managers cover Windows, Linux, macOS, Android, HTML5, Raspberry Pi, and other platforms mentioned in project guides. Bindings exist for dozens of languages. Example code numbering in the hundreds demonstrates individual features in isolation.

Design trade-offs keep the API small: one window and context by default, vertically flipped render textures, and font quality limitations compared with dedicated text stacks. Forks and samples address gaps when projects outgrow the core scope.

Key features

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
  • Shader and PBR material support
  • Large cross-platform example set
  • Many language bindings
  • VR stereo rendering option
  • raymath for 3D math

Use cases

  • Game prototyping in C
  • Graphical tooling and education
  • Embedded and IoT graphics
  • WebAssembly and HTML5 demos
  • Learning graphics programming

Tags

Similar software

PixiJS

HTML5 WebGL and WebGPU 2D graphics library

PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.

  • WebGPU and WebGL 2D rendering
  • Spritesheets and asset loader
  • Filters and custom shaders
TypeScriptWeb, CLIDetails →
★ 49k⟳ 4 days agoMIT

Babylon.js

Browser JavaScript engine for WebGL and WebGPU 3D

Babylon.js is a web 3D engine for building games, configurators, digital twins, and XR experiences in the browser with TypeScript-friendly npm packages.

  • WebGL, WebGL2, and WebGPU rendering
  • WebXR and Web Audio integration
  • Typed npm and ES module packages
TypeScriptWebDetails →
★ 26.6k⟳ todayApache-2.0
Open Source Alternative to:Unity

WaveFunctionCollapse

Procedural bitmap and tilemap generator from one example

WaveFunctionCollapse builds output images that reuse only local pixel patterns found in a sample input. It supports bitmap synthesis and tile-based level layouts for games and art.

  • Bitmap generation from one sample image
  • Tilemap model with adjacency constraints
  • Observation and propagation collapse cycle
C#Web, Linux, macOS, WindowsDetails →
★ 25.6k⟳ 8 months agoMIT

ML-Agents

Unity toolkit for training agents in games and simulations

Unity ML-Agents turns games and simulations into training environments for intelligent agents using deep reinforcement learning and imitation learning, installed as a Unity package with Python tooling.

  • Reinforcement learning training environments
  • Imitation learning support
  • Unity editor integration
C#Details →
★ 19.9k⟳ 1 month agoApache-2.0

Matter.js

JavaScript two-dimensional rigid body physics engine

Matter.js simulates 2D rigid-body physics for browser games and interactive pages. It runs in modern browsers and Node.js with canvas rendering and touch-friendly controls.

  • Rigid and compound bodies
  • Concave and convex collision shapes
  • Constraints and gravity
JavaScriptWebDetails →
★ 18.7k⟳ 2 months agoMIT

bgfx

Cross-platform graphics-API-agnostic rendering library

bgfx is a bring-your-own-engine rendering library that works across many GPUs and operating systems. It exposes C/C++ APIs and bindings in several languages.

  • Multiple GPU rendering backends
  • Bring-your-own-engine integration style
  • C and C++ core API
C++Linux, macOS, Windows, AndroidDetails →
★ 17.7k⟳ todayBSD-2-Clause