WGL
WGL, or Windows Graphics Library, is the OpenGL interface for the Windows operating system. It provides the set of functions that allow applications to create and manage OpenGL rendering contexts, select pixel formats, and load OpenGL extensions on Windows. WGL is part of the Windows platform SDK and serves as the Windows-specific counterpart to GLX on Unix-like systems.
Core concepts in WGL include the device context (HDC) and the rendering context (HGLRC). An application obtains
Extensions and extension loading are central to WGL. Extensions add functionality such as enhanced pixel format
History and scope: WGL evolved with OpenGL and Windows drivers to support newer graphics features and contexts.
See also: OpenGL, GLX, EGL, Windows API, HDC, HGLRC, wglCreateContext, wglMakeCurrent, wglGetProcAddress.