• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.clang-formatD23-Nov-202340 32

README.mdD23-Nov-20231.3 KiB2115

egl.hD23-Nov-2023922 305

gl.hD23-Nov-202343.8 KiB744692

glext.hD23-Nov-202352.2 KiB966850

glext_angle.hD23-Nov-20231.2 KiB4014

glplatform.hD23-Nov-20231.1 KiB3910

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