getEglLibrary method
EGL provides a native platform interface via the <EGL/egl.h> and <EGL/eglext.h> headers for allocating and managing OpenGL ES contexts and surfaces. EGL allows you to perform the following operations from native code:
- List supported EGL configurations.
- Allocate and release OpenGL ES surfaces.
- Create and destroy OpenGL ES contexts.
- Swap or flip surfaces.
Implementation
DynamicLibrary? getEglLibrary() {
if (Platform.isAndroid) {
return DynamicLibrary.open("libEGL.so");
} else {
return DynamicLibrary.process();
}
}