GLFW is an Open Source, multi-platform library for creating windows with OpenGL contexts and receiving 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, OpenGL ES, MSAA, sRGB and robustness
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. If GLFW isn’t what you’re looking for, there are alternatives.

Version 3.1 released

Posted on

GLFW 3.1 is available for download. It adds improved documentation, support for custom system cursors, file drop events, main thread wake-up, window frame size retrieval, floating windows, character input with modifier keys, single buffered windows, build improvements and fixes for a large number of bugs.

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.

See the news archive for older posts.