Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 12-Nov-2020 | - | ||||
.clang-format | H A D | 07-Nov-2020 | 22 | 4 | 1 | |
README.md | H A D | 07-Nov-2020 | 1.3 KiB | 21 | 15 | |
egl.h | H A D | 07-Nov-2020 | 922 | 30 | 5 | |
gl.h | H A D | 07-Nov-2020 | 43.8 KiB | 744 | 692 | |
glext.h | H A D | 07-Nov-2020 | 52.2 KiB | 966 | 850 | |
glext_angle.h | H A D | 07-Nov-2020 | 733 | 24 | 8 | |
glext_explicit_context_autogen.inc | H A D | 07-Nov-2020 | 28 KiB | 259 | 257 | |
glplatform.h | H A D | 07-Nov-2020 | 1.1 KiB | 39 | 10 |
README.md
1# ANGLE GLES 1.0 Headers 2 3The GLES 1.0 headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards. 4 5### Regenerating gl.h 6 71. Install **Python 3** (not 2) with the **lxml** addon. You can do this using `pip install lxml` from your Python's Scripts folder. 81. Clone [https://github.com/KhronosGroup/OpenGL-Registry.git](https://github.com/KhronosGroup/OpenGL-Registry.git). 91. Edit `OpenGL-Registry/xml/genheaders.py`: 10 11 1. Look for the section titled `# GLES 1.x API + mandatory extensions - GLES/gl.h (no function pointers)` 12 1. Change `prefixText = prefixStrings + gles1PlatformStrings + genDateCommentString,` to `prefixText = prefixStrings + gles1PlatformStrings + apiEntryPrefixStrings + genDateCommentString,` 13 1. Change `genFuncPointers = False,` to `genFuncPointers = True,` 14 1. Change `protectProto = False,` to `protectProto = 'nonzero',` 15 1. Change `protectProtoStr = 'GL_GLEXT_PROTOTYPES',` to `protectProtoStr = 'GL_GLES_PROTOTYPES',` 16 171. Set your working directory to `OpenGL-Registry/xml/`. 181. Run `python genheaders.py ../api/GLES/gl.h` 191. The generated header will now be in `OpenGL-Registry/api/GLES/gl.h`. You can copy the header over to this folder. 201. Also update `scripts/gl.xml` with the latest version from `OpenGL-Registry/xml/`. 21