The Khronos OpenGL API Registry Schema
Jon Leech
Last updated 2020-10-27
Abstract
This document describes the Khronos OpenGL API Registry XML schema,
and provides some additional information about using the registry and scripts to
generate C header files. The underlying XML files and scripts, as well as headers
generated from the current authoritative copy of the XML files, can be obtained
from the OpenGL-Registry github repository at
https://github.com/KhronosGroup/OpenGL-Registry
Contents
1 Introduction 3
2 Getting Started 3
2.1 Header Generation Script - genheaders.py . . . . . . . . . . . . 4
2.2 Registry Processing Script - reg.py . . . . . . . . . . . . . . . . . 4
3 XML Registry Schema 4
3.1 Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 API Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 Registry Root (<registry> tag) 5
4.1 Attributes of <registry> tags . . . . . . . . . . . . . . . . . . . . 5
4.2 Contents of <registry> tags . . . . . . . . . . . . . . . . . . . . 5
5 API types (<types> tag) 6
5.1 Attributes of <type> tags . . . . . . . . . . . . . . . . . . . . . . . 6
5.2 Contents of <type> tags . . . . . . . . . . . . . . . . . . . . . . . . 6
5.3 Example of a <types> tag . . . . . . . . . . . . . . . . . . . . . . 6
6 Enumerant Groups (<groups> tag) 7
6.1 Attributes of <groups> tags . . . . . . . . . . . . . . . . . . . . . 7
6.2 Contents of <groups> tags . . . . . . . . . . . . . . . . . . . . . . 7
6.3 Example of <groups> tags . . . . . . . . . . . . . . . . . . . . . . 7
1