android opengl es 原始碼

兵形東華發表於2016-01-10

【轉自:http://blog.csdn.net/happyhell/article/details/6086973】

The entire OpenGL ES API on Android is implemented in three libraries, located under /system/lib (for more information about OpenGL ES visit the official Khronos page):


* libEGL.so: implementation of the EGL common platform interface layer (see Khronos page).
* libGLESv1_CM.so: implementation of the OpenGL ES 1.X API
* libGLESv2.so: implementation of the OpenGL ES 2.X API.

 

Those libraries are actually hooks to the proprietary driver implementation located under /system/lib/egl:
libEGL_adreno200.so, libGLESv1_CM_adreno200.so, libGLESv2_adreno200.so.

 

There’s also a software GLES implementation library there, called: libGLES_android.so.

 

The egl.cfg file defines the names of libraries used for hooking.

 

The source code of those libraries is located under: frameworks/base/opengl/libs.

相關文章