qmetrics.net

GLFW

Cross-platform windowing library for OpenGL and Vulkan

GLFW screenshot

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.

Overview

GLFW gives C and C++ applications a small, platform-neutral API for opening windows, creating rendering contexts, reading keyboard and mouse input, and processing events. It is aimed at OpenGL, OpenGL ES, and Vulkan development rather than shipping a full game engine.

Supported operating environments include Windows, macOS, and Linux with both X11 and Wayland on Linux, plus other Unix-like systems. macOS support mixes C99 with Objective-C where required. Documentation covers tutorials, guides, and a full API reference; prebuilt Windows and macOS binaries are published alongside source releases.

Feature highlights from the project site include creating a window and context with minimal setup calls, multiple monitors and high-DPI handling, gamma ramps, keyboard and mouse and gamepad input via polling or callbacks, and access to native platform objects for specialized integrations. Language bindings are maintained by the community.

System requirements note Windows 7 and later, macOS 10.11 and later, and basic X11 support without requiring a full desktop on some Unix setups. GLFW builds with CMake using platform headers and libraries, without mandating extra graphics SDKs beyond what the OS provides.

Key features

  • Windows and OpenGL or Vulkan contexts
  • Keyboard, mouse, and gamepad input
  • Multiple monitors and high-DPI support
  • Event polling and callback handlers
  • X11 and Wayland on Linux
  • Native object access for platform features
  • Online tutorial and API reference
  • Prebuilt binaries for Windows and macOS

Use cases

  • Bootstrap a desktop OpenGL application
  • Prototype Vulkan rendering on multiple OSes
  • Handle window resize and input in a C engine
  • Embed GLFW in tools needing a GL context
  • Portable Unix graphics utilities

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

raylib

Minimal C library for games and graphical programs

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.

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
CLinux, macOS, Windows, AndroidDetails →
★ 35.9k⟳ yesterdayZlib

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