How does OpenGL ES for android work?

狂风中的少年 提交于 2019-12-12 04:33:10

问题


I am doing a project where I'm creating my own 3D graphics using android studio.

I have so far created a rotating sphere using a perspective projection and my own classes of shapes that contain the shapes vertices and faces. Each face is drawn as a triangle to a bitmap, which an ImageView updates itself with.

However the program is slow as I guess all the calculations run in software and not hardware.

I have now seen that I can use OpenGL ES to use hardware to perform the calculations needed, however I am not sure if OpenGL will perform all the transformation calculations for me. I do not want this as it would defy the point of my project.

I want to know if I can use my own code to perform the perspective projection, or if OpenGL turns 3D coordinates into 2D for me? Or alternatively if I can use OpenGL 2D to render my already rasterised triangles?

Furthermore is there a way to get my algorithms to run on hardware to speed them up? And can you chose how many of OpenGL's algorithms you use?

来源:https://stackoverflow.com/questions/41839591/how-does-opengl-es-for-android-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!