问题描述
我一直在开发iPhone应用程序几个月。我想知道您对Quartz vs OpenGL ES 1.x或2.0学习曲线的看法。你可以告诉你的观点。我的问题是
I have been developing iPhone Applications for a couple of months. I would like to know your views about the Quartz vs OpenGL ES 1.x or 2.0 learning curve. You can tell your perspective. My Questions are
*我是一个想要的游戏开发者,所以首先在石英开发,然后将
移到OpenGL上是一个好主意ES或它没有什么区别
*当你遇到类似的问题时,能否告诉你的经历
*I am a wannabe game developer, So is it a good idea to first develop in quartz , then move
on to OpenGL ES or does it not make an difference *Can you please tell your experiences when you were having the similar question
谢谢:)
推荐答案
Quartz 2D不适用于游戏开发恕我直言。它是一个软件渲染API。它不会给你实时渲染速度。它适用于绘制带阴影的图表或矢量文本,或将多个图像混合在一起。只是不适合游戏。除非你想制作一款几乎没有图像在单色背景下移动的游戏,即使在这种情况下,我怀疑它在旧设备上会非常流畅。我见过一些明显用Quartz编码的游戏。一个可怜的景象。
迟早你最终会使用Open GL ES或游戏框架。我建议您检查cocos2D,SIO2引擎或SDK中的示例。
通过精心编程,可以制作具有视差滚动的Open GL ES游戏,相对少量的物体即使在第二代设备上也能以60 FPS工作。 Tiny Wings就是这种游戏的一个例子。保持稳定的30 FPS根本不是问题。
Quartz 2D is not applicable for game development IMHO. It is a software rendering API. It won't give you realtime rendering speed. It's good for drawing charts or vector text with shadows, or for blending several images together. Just not for games. Unless you want to make a game where few images are moving against a monochrome background and even in that case I doubt it will be really smooth on older devices. I've seen some games obviously coded with Quartz. A pitiful sight.
Sooner or later you'll end up using Open GL ES or a game framework build on top of it. I recommend you to check cocos2D, SIO2 engine, or examples from SDK.With careful programming it is possible to make an Open GL ES game with parallax scrolling and relatively small amount of objects work at 60 FPS even on 2nd gen devices. Tiny Wings is an example of such game. And maintaining stable 30 FPS is not a problem at all.
这篇关于Quartz 2D与OpenGL ES学习曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!