分类: 嵌入式
2010-10-25 15:33:27
1.
frameworks/base/opengl/libagl/copybit.cpp文件中,现了copybit()、drawTriangleFanWithCopybit_impl()、drawTexiOESWithCopybit_impl()函数。其中drawTriangleFanWithCopybit_impl()、drawTexiOESWithCopybit_impl()函数调用了copybit()函数。
2.
在frameworks/base/opengl/libagl/copybit.cpp文件中,drawTriangleFanWithCopybit_impl()函数被封装成drawTriangleFanWithCopybit();drawTexiOESWithCopybit_impl()函数被封装成drawTexiOESWithCopybit()。
3.
frameworks/base/opengl/libagl/array.cpp文件中,TriangleFanWithCopybit()函数被封装成drawPrimitivesTriangleFan ()函数。而drawPrimitivesTriangleFan ()函数被glDrawArrays()函数所调用,该函数是opengl的api,详见frameworks/base/opengl/libs/GLES_CM/gl_api.in。
4.
frameworks/base/opengl/libagl/texture.cpp文件中,drawTexiOESWithCopybit()函数被drawTexiOES()函数以及drawTexxOES()函数所调用。drawTexiOES()函数被glDrawTexsvOES()、glDrawTexivOES()、glDrawTexsOES()、glDrawTexiOES()函数所调用; drawTexxOES()函数被glDrawTexfvOES()、glDrawTexxvOES()、glDrawTexfOES()、glDrawTexxOES()函数所调用;而这八个函数是opengl的api,详见frameworks/base/opengl/libs/GLES_CM/glext_api.in文件。