我应该学习什么:Quartz或OpenGL ES? [英] What should I learn: Quartz or OpenGL ES?

查看:149
本文介绍了我应该学习什么:Quartz或OpenGL ES?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习为iPhone编程。我正在试图弄清楚如何做一些非常酷的自定义视图动画。我应该学习什么,Quartz或OpenGL ES?

I'm learning to program for the iPhone. I'm trying to figure out how to do some really cool custom view animations. What should I learn, Quartz or OpenGL ES?

对于那些说OpenGL ES的人,我可以用它来动画我的视图,还是仅适用于Quartz的任务?谢谢。

For whoever says OpenGL ES, could I use it to animate my views or is only Quartz suitable for the task? Thanks.

还有任何资源/书籍或以最无痛的方式教你这些东西的东西吗?

Also any resources / the book or anything that teaches you this stuff in the most painless manner?

推荐答案

通过Quartz,你可能意味着核心动画。 Quartz只是Mac / iPhone 2-D绘图API,其中Core Animation处理视图和图层的动画。

By Quartz, you probably mean Core Animation. Quartz is simply the Mac / iPhone 2-D drawing API, where Core Animation handles animation of views and layers.

使用OpenGL执行自定义动画非常困难视图,但核心动画是为此目的而设计的。我向人们推荐,如果他们考虑做二维动画,即使在游戏中,他们也应该首先看看Core Animation并且只有在Core Animation的表现不可接受的情况下才能进入OpenGL ES。 Core Animation让你只需要一些代码即可完成很多工作,现在有很多关于这个主题的很好的参考资料(例如Marcus Zarra和Matt Long的新书)。

It is very difficult to use OpenGL for performing custom animations on views, but Core Animation is designed for this purpose. It has been my recommendation to people that if they are thinking about doing 2-D animations, even in games, they should look at Core Animation first and go to OpenGL ES only if Core Animation's performance is unacceptable. Core Animation lets you do a lot with just a little code, and there are now plenty of great references out there on the topic (such as Marcus Zarra and Matt Long's new book).

您可能希望更多地参考其他一些问题:

You may wish to refer to some of these other questions for more:

  • iPhone board game: OpenGL ES or CoreGraphics?
  • Core Animation or OpenGL for simple iPhone game
  • Quartz 2D vs OpenGL ES Learning Curve

这篇关于我应该学习什么:Quartz或OpenGL ES?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆