Welcome

GLFW is an Open Source, multi-platform library for creating windows with OpenGL contexts and managing input and events. It is easy to integrate into existing applications and does not lay claim to the main loop.

GLFW is written in C and has native support for Windows, OS X and many Unix-like systems using the X Window System, such as Linux and FreeBSD.

GLFW is licensed under the zlib/libpng license.


Gives you a window and OpenGL context with just two function calls
Support for OpenGL 3.2+ with profiles and flags, MSAA, sRGB, robustness and OpenGL ES
Support for multiple windows, multiple monitors, high-DPI, gamma ramps and clipboard
Support for keyboard, mouse, gamepad, time and window event input, via polling or callbacks
Comes with guides, a tutorial, 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, and GLFW is no exception. If GLFW isn’t what you’re looking for, there are alternatives.


Latest news

Version 3.0.4 released

Posted on

GLFW 3.0.4 is available for download. It adds fixes for a number of bugs that together affect all supported platforms, most notably MinGW compilation issues and cursor mode issues on OS X.

Pandora: First Contact

Posted on

Pandora: First Contact is a science fiction 4X turn-based strategy game on a planetary scale, inspired by Sid Meier’s Alpha Centauri. As the various factions strive to take control, each will research and develop new technologies, discover new weapons and ancient alien ruins, create trade agreements and forge alliances with other factions.

TimeLines: Assault on America

Posted on

TimeLines: Assault on America is a real-time strategy game that attempts to revive and modernize elements of Command & Conquer and Starcraft. It is set in an alternate history after WWII and has the goal of portraying the Central and Eastern Europe armored forces that are still unknown to many.

See the news archive for older posts.