Loading OpenGL ES libraries

OpenGL ES stands for Open GL Embedded System, which is a subset of OpenGL from Khronos. EGL is an interface between OpenGL ES and the underlying native platform. The API of EGL is supposed to be platform-agnostic, but the implementation of the EGL API is not.

The implementation of OpenGL ES in Android includes the Java API and native implementation. These two parts can be found at:

  • Java API: $AOSP/frameworks/base/opengl
  • OpenGL ES native: $AOSP/frameworks/native/opengl

These two parts of the OpenGL implementation depend on a vendor implementation to provide the full function of the OpenGL ES API. During the system start-up, the system will search for paths /system/lib/egl or /vendor/lib/egl to find the vendor ...

Get Android System Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.