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

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

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.

★ 35.8k⟳ todayZlib
Frameworks & PlatformsDesktop/CLI app

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

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