Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.clang-format | D | 23-Nov-2023 | 40 | 3 | 2 | |
README.md | D | 23-Nov-2023 | 1.3 KiB | 21 | 15 | |
egl.h | D | 23-Nov-2023 | 922 | 30 | 5 | |
gl.h | D | 23-Nov-2023 | 43.8 KiB | 744 | 692 | |
glext.h | D | 23-Nov-2023 | 52.2 KiB | 966 | 850 | |
glext_angle.h | D | 23-Nov-2023 | 1.2 KiB | 40 | 14 | |
glplatform.h | D | 23-Nov-2023 | 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