Are most games on the IPhone done with OpenGL ES?

心已入冬 提交于 2019-12-19 19:51:41

问题


I was just wondering if most games on the iPhone are done in OpenGL ES as opposed to using Quartz and Core Animation. Are Quartz and Core Animation mostly used for just creating slick interfaces? Or if there is a point with games where OpenGL probably has to be used over using other tools?


回答1:


For efficiency reasons OpenGL ES is you best choice for games, unless your writing a "simple" board game or card game (like Solitaire). In this case Core Animation would be a good fit.




回答2:


You should check out cocos2d-iphone if you are going to do a 2d game. It seems to be a pretty solid foundation. It comes with the chipmunk physics engine and everything all ready to go.




回答3:


I think OpenGL is your best choice, I can't agree that the Quartz stuff is any easier to use.

Also if you're successful then most of your code will be portable to other platforms. Something to consider.




回答4:


Mostly it comes down to whether you need 3D or not. If your game is entirely 2 dimensional, then using Quartz for your drawing is probably simpler. Not that OpenGL is all that complicated, but it is more complex than the Quartz interface.

Quartz drawing and compositing will be OpenGL accelerated when possible, so there shouldn't be much performance difference if you're strictly doing 2D drawing.



来源:https://stackoverflow.com/questions/747672/are-most-games-on-the-iphone-done-with-opengl-es

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