The EGL headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards.
pip install lxml from your Python's Scripts folder.EGL-Registry/api/genheaders.py and add the following under glesProtoPrefixStrings:eglProtoPrefixStrings = [ '#ifndef EGL_EGL_PROTOTYPES', '#define EGL_EGL_PROTOTYPES 1', '#endif', '' ]
Also in EGL-Registry/api/genheaders.py:
# EGL API - EGL/egl.h (no function pointers, yet @@@)prefixText to prefixStrings + eglPlatformStrings + eglProtoPrefixStrings + genDateCommentStringgenFuncPointers = False, to genFuncPointers = True,protectProto = False, to protectProto = 'nonzero',protectProtoStr = 'EGL_EGLEXT_PROTOTYPES', to protectProtoStr = 'EGL_EGL_PROTOTYPES',Set your working directory to EGL-Registry/api/.
Run python genheaders.py -registry egl.xml EGL/egl.h
The generated header will now be in EGL-Registry/api/EGL/egl.h. You can copy the header over to this folder.
Also update scripts/egl.xml with the latest version from EGL-Registry/api/.