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

Bevy Engine

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

★ 50k⟳ yesterdayApache-2.0
Open Source Alternative to:Unity

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

★ 40.8k⟳ 3 months agoMIT

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.

★ 18.7k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

wgpu

Cross-platform safe Rust graphics API

wgpu implements the WebGPU-style API in Rust for native and WebAssembly targets. It backs Firefox, Servo, and Deno WebGPU integration and maps to Vulkan, Metal, D3D12, and GLES.

★ 18.7k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app

GLFW

Cross-platform windowing library for OpenGL and Vulkan

GLFW is a C library that creates windows, graphics contexts, and surfaces while handling input and events. It targets OpenGL, OpenGL ES, and Vulkan on desktop and Unix-like systems.

★ 15.5k⟳ 3 months agoZlib
Frameworks & PlatformsDesktop/CLI app

Bullet3

Real-time collision and multi-physics simulation SDK

Bullet Physics SDK provides real-time collision detection and multi-physics simulation for games, visual effects, VR, robotics, and machine learning. PyBullet Python bindings are recommended for robotics and RL workflows.

★ 14.9k⟳ 1 month agoZlib · open core
Frameworks & PlatformsDesktop/CLI app