libagl下copybit调用流程

来源:互联网 发布:有支付宝怎么注册淘宝 编辑:程序博客网 时间:2024/05/22 00:07

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文件。