open GLES or canvas? (android)

爷,独闯天下 提交于 2019-12-12 09:09:48

问题


I am making an app that is going to be on the market soon but i'm wondering, should I use Canvas or Open GLES? right now i have no idea about how to use open GLES. I am using canvas for about have a year and I heard that open GLES is better than canvas. I am making a 2d game and not a 3d game. should i use canvas or open GLES? if i should use the open GLES, can you give me a good tutorial on how to use it? and also how to do basic things like control the x and y in there or is it just like the canvas? please be specific because i have never experienced any kind of GL. Thanks!


回答1:


If you're going to have any more than 20 sprites you'll want to think about OpenGL ES. The following talks linked below explain the cut-offs and reasons why.

Good reference materials can be found at:

  • http://www.youtube.com/watch?v=U4Bk5rmIpic
  • http://www.youtube.com/watch?v=7-62tRHLcHk
  • http://www.youtube.com/watch?v=cdvaPyq_eBU

which covers OpenGL ES compatibility issues and speed/performance issues.

You will have to choose between 1.1 or 2.0 - 1.1 is easier for 2d games in my opinion but 2.0 gives greater flexibility.



来源:https://stackoverflow.com/questions/8043519/open-gles-or-canvas-android

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