A downloadable tool for Windows, macOS, and Linux

Download NowName your own price

RGFW is a cross-platform lightweight single-header simple-to-use window abstraction library for creating graphical programs or libraries. RGFW is designed as a lightweight alternative to GLFW.

The window backend supports XLib (UNIX), Cocoas (MacOS), web ASM (emscripten) and WinAPI (tested on Windows XP, 10 and 11, and ReactOS) Windows 95 & 98 have also been tested with RGFW, although results are iffy

The graphics backend supports OpenGL (EGL, software, OSMesa, GLES), Vulkan, DirectX, and software rendering buffers.

RGFW is multi-paradigm, By default RGFW uses a flexible event system, similar to that of SDL, however, you can use callbacks if you prefer that method.

This library

  1. is single header and portable (written in C99 in mind)
  2. is very small compared to other libraries
  3. only depends on system API libraries, Winapi, X11, Cocoa
  4. lets you create a window with a graphics context (OpenGL, Vulkan, or DirectX) and manage the window and its events only with a few function calls

This library does not

  1. Handle any rendering for you (other than creating your graphics context)
  2. do anything above the bare minimum in terms of functionality

# RGFW vs GLFW
A Github gist comparing RGFW and GLFW can be found here.

In general, RGFW uses less resources than GLFW and is smaller. While also retaining most of the same features and offering a more flexible API.

The RGFW github repository includes many examples of how to use RGFW and can be run with HTML5 here.

NOTE: The binaries may not be up to date with the latest release, The latest release can be found on github.  The other downloads will be up-to-date with the latest commit but do not include library binaries (which aren't needed if you're using it as a single-header file anyway). 

Download

Download NowName your own price

Click download now to get access to the following files:

RGFW.h
External
RGFW.zip
External
RGFW-1.05 binaries
External
RGFW-1.05 binaries
External
RGFW-1.05 binaries
External

Leave a comment

Log in with itch.io to leave a comment.