EGL is an interface between Khronos rendering APIs (such as OpenGL ES and OpenVG) and the underlying native window system. HarmonyOS supports EGL.
To use EGL capabilities, include the following header file:
#include <EGL/egl.h>
Add the following dynamic link library to CMakeLists.txt:
libEGL.so
To call the EGL extended APIs, include the following header file and add the macro definition to CMakeLists.txt:
#include <EGL/eglext.h> EGL_EGLEXT_PROTOTYPES