Glad is a cross-platform graphics API loader generator that produces source code for loading function pointers based on official specifications. It functions as a multi-language tool designed to ensure consistent communication between applications and graphics drivers across different operating systems and hardware.
The tool utilizes a plugin-based architecture to generate loading code for multiple programming languages. It employs specification-driven code generation, parsing official XML or JSON files to ensure the correctness of function signatures and mapping optional API extensions to specific pointers based on detected hardware capabilities.
The project provides capabilities for GPU extension management and cross-language API binding, specifically targeting the loading of OpenGL and Vulkan functions. It produces minimal source files for header-only distribution, allowing loaders to be included in projects without pre-compiled binary libraries.