GLEW loads OpenGL core and extension entry points at runtime and exposes them through one header. It targets Windows, Linux, macOS, and other Unix systems.
Overview
The OpenGL Extension Wrangler Library (GLEW) is a C and C++ library that resolves which OpenGL extensions exist on the running system and binds the corresponding functions. Core and extension entry points are available from a single include, simplifying portable graphics code.
The project ships official release archives and Windows binaries, with build support through GNU Make, CMake, and Visual Studio project files. Variants cover GLX on X11, WGL on Windows, EGL, and off-screen Mesa configurations. Maintainers recommend release tarballs for most users because regenerating extension data requires Perl and Python tooling on Linux or macOS.
Utilities glewinfo and visualinfo report driver capabilities and extension support, which the authors ask be attached to bug reports. Extension metadata can be refreshed from upstream definitions when building from source.
GLEW has been used across games, visualization, and research code since its origins in the EXTGL project. Licensing combines permissive terms on the runtime library with GPL-covered code generation scripts.
It remains a common choice when applications need runtime OpenGL extension discovery without platform-specific loader code for each extension string.
Key features
- Runtime OpenGL extension detection
- Single-header core and extensions
- GLX, WGL, and EGL build modes
- glewinfo capability reporter
- CMake and Make build targets
- Windows and Unix release binaries
- Static and shared library outputs
Use cases
- Portable OpenGL desktop applications
- Diagnosing GPU GL capabilities
- Linux and Windows graphics tools
- Legacy OpenGL extension access