mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-01 05:48:11 +03:00
Currently glext_angle.h file, which is for GLES 1.x, has enums for GL_ANGLE_yuv_internal_format which is an ES 3.0+ extension. Merge contents of glext_angle.h into gl2ext_angle.h and remove glext_angle.h Bug: angleproject:6579 Change-Id: Iec5427af131888a2d9c473f4f497afb71dcafdac Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3232822 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>
ANGLE GLES 1.0 Headers
The GLES 1.0 headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards.
Regenerating gl.h
-
Install Python 3 (not 2) with the lxml addon. You can do this using
pip install lxmlfrom your Python's Scripts folder. -
Edit
OpenGL-Registry/xml/genheaders.py:- Look for the section titled
# GLES 1.x API + mandatory extensions - GLES/gl.h (no function pointers) - Change
prefixText = prefixStrings + gles1PlatformStrings + genDateCommentString,toprefixText = prefixStrings + gles1PlatformStrings + apiEntryPrefixStrings + genDateCommentString, - Change
genFuncPointers = False,togenFuncPointers = True, - Change
protectProto = False,toprotectProto = 'nonzero', - Change
protectProtoStr = 'GL_GLEXT_PROTOTYPES',toprotectProtoStr = 'GL_GLES_PROTOTYPES',
- Look for the section titled
-
Set your working directory to
OpenGL-Registry/xml/. -
Run
python genheaders.py ../api/GLES/gl.h -
The generated header will now be in
OpenGL-Registry/api/GLES/gl.h. You can copy the header over to this folder. -
Also update
scripts/gl.xmlwith the latest version fromOpenGL-Registry/xml/.