angle/include/GLES
Mohan Maiya 9a7b62ad40 Remove glext_angle.h, merge contents into gl2ext_angle.h
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>
2021-10-20 12:45:54 +00:00
..
.clang-format Fixed OpenCL headers for Windows 2021-04-07 12:30:01 +00:00
README.md Re-land "Load entry points dynamically in tests and samples." 2019-01-01 18:56:45 +00:00
egl.h Add GLES1 targets and stub entry points. 2018-01-16 19:01:00 +00:00
gl.h Re-land "Load entry points dynamically in tests and samples." 2019-01-01 18:56:45 +00:00
glext.h Remove glext_angle.h, merge contents into gl2ext_angle.h 2021-10-20 12:45:54 +00:00
glplatform.h Add GLES1 targets and stub entry points. 2018-01-16 19:01:00 +00:00

README.md

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

  1. Install Python 3 (not 2) with the lxml addon. You can do this using pip install lxml from your Python's Scripts folder.

  2. Clone https://github.com/KhronosGroup/OpenGL-Registry.git.

  3. Edit OpenGL-Registry/xml/genheaders.py:

    1. Look for the section titled # GLES 1.x API + mandatory extensions - GLES/gl.h (no function pointers)
    2. Change prefixText = prefixStrings + gles1PlatformStrings + genDateCommentString, to prefixText = prefixStrings + gles1PlatformStrings + apiEntryPrefixStrings + genDateCommentString,
    3. Change genFuncPointers = False, to genFuncPointers = True,
    4. Change protectProto = False, to protectProto = 'nonzero',
    5. Change protectProtoStr = 'GL_GLEXT_PROTOTYPES', to protectProtoStr = 'GL_GLES_PROTOTYPES',
  4. Set your working directory to OpenGL-Registry/xml/.

  5. Run python genheaders.py ../api/GLES/gl.h

  6. The generated header will now be in OpenGL-Registry/api/GLES/gl.h. You can copy the header over to this folder.

  7. Also update scripts/gl.xml with the latest version from OpenGL-Registry/xml/.