This repo contains the standardised khronos headers for EGL and OpenGL ES 1.x, 2.x and 3.x. From these headers stub libraries are generated for use in the "App SDK". This allows clients to build and link against the stub library(s) without needing to have the actual EGL or OpenGL ES libraries installed on their system.
At runtime the stub libraries will be replaced with the actual EGL and OpenGL ES libraries, so clients can use the same code to build and run on any platform that supports EGL and OpenGL ES.
The headers are sourced from the official Khronos repositories:
- Khronos EGL Registry
- Khronos EGL Registry headers on github
- Khronos OpenGL ES Registry
- Khronos OpenGL ES Registry headers on github
The libraries are named and versioned according to 2.1.2.2. Naming
and therefore follow the pattern libEGL.so, libGLESv1_CM.so and libGLESv2.so for the respective libraries.
The libraries are built using the CMake build system. To build the libraries, run the following commands:
mkdir build
cd build
cmake ..
makeThe stub libraries are generated using the genstubs.py script. This script will (re)generate the source code in the
stubs directory, which can then be built using the CMake build system.