android opengl es 源码

【转自: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.

posted @ 2016-01-10 22:47  兵形东华  阅读(702)  评论(0编辑  收藏  举报