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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.