GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop. It provides a simple API for creating windows, contexts and surfaces, receiving input and events.

GLFW is written in C and supports Windows, macOS, Wayland and X11.

GLFW is licensed under the zlib/libpng license.


Gives you a window and OpenGL context with just two function calls
Support for OpenGL, OpenGL ES, Vulkan and related options, flags and extensions
Support for multiple windows, multiple monitors, high-DPI and gamma ramps
Support for keyboard, mouse, gamepad, time and window event input, via polling or callbacks
Comes with a tutorial, guides and reference documentation, examples and test programs
Open Source with an OSI-certified license allowing commercial use
Access to native objects and compile-time options for platform specific features
Community-maintained bindings for many different languages

No library can be perfect for everyone. If GLFW isn’t what you’re looking for, there are alternatives.

Version 3.4 released

Posted on

GLFW 3.4 is available for download.

This is a smaller feature release, as a basis for future work.

It adds runtime platform selection, better support for Wayland, both Wayland and X11 enabled by default, more standard cursor shapes, custom heap allocator support, per-window mouse input passthrough, window title query, a conforming Null platform available everywhere, window hints for initial position, new (harmless) errors informing about missing features, several platform-specific hints, a new native-access function, a hint for selecting ANGLE backend, various other minor features and fixes for issue on all supported platforms.

GLFW 3.4 uses the Visual Studio 2013 subset of C99 and will not compile with Visual Studio 2012 or earlier.

Version 3.3.10 released

Posted on

GLFW 3.3.10 is available for download.

This is a bug fix release. It adds fixes for issues on all supported platforms.

Binaries for Visual C++ 2010 and 2012 are no longer included. These versions are no longer supported by Microsoft and should not be used. This release of GLFW can still be compiled with them if necessary, but future releases will drop this support.

Binaries for the original MinGW distribution are no longer included. MinGW appears to no longer be maintained and should not be used. The much more capable MinGW-w64 project should be used instead. This release of GLFW can still be compiled with the original MinGW if necessary, but future releases will drop this support.

Version 3.3.9 released

Posted on

GLFW 3.3.9 is available for download.

This is primarily a bug fix release for all supported platforms but it also adds libdecor support for Wayland. This provides better window decorations in some desktop environments, notably GNOME.

With this release GLFW should be fully usable on Wayland, although there are still some issues left to resolve.

See the news archive for older posts.