mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
1. Add a new extension to support creation of immutable textures with sized internal YUV formats 2. Rename YUV format enums from *_ANGLEX to *_ANGLE 3. Move YUV format enums from angleutils.h to glext_angle.h Bug: angleproject:5773 Change-Id: Ibfe732f4c9a4a536be56481f33e4768f6227c212 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2820153 Commit-Queue: Mohan Maiya <[email protected]> Reviewed-by: Jamie Madill <[email protected]> Reviewed-by: Shahbaz Youssefi <[email protected]>
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/.