The EGL headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards.
Install Python 3 (not 2) with the lxml addon. You can do this using pip install lxml
from your Python's Scripts folder.
Edit EGL-Registry/api/genheaders.py
:
# EGL API - EGL/egl.h (no function pointers, yet @@@)
genFuncPointers = 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/
.