Using vector graphics in iPhone games

£可爱£侵袭症+ 提交于 2019-12-20 10:26:29

问题


I'm Flash/AS3 developer and I'm wondering how some iPhone developers use vector assets in their games.

For example, "Lil' Pirates": this games looks like vector-based, it's zooming and unzooming easily, but I can't get any information about using vector assets at iOS.


回答1:


Quartz 2D is a pretty lightweight framework for vector based graphics. It's very well documented...

Quartz Documentation

In particular I'd pay particular notice to layering and performance...

Quartz Layering and Performance

If performance is a worry I'd also have a read through the core animation documentation. Core animation uses CALayers to cache vectors drawn with Quartz to in-memory bitmaps. These CALayers can then be transformed and translated through the animation APIs. If you intend to perform a lot of drawing this is the route I would recommend.



来源:https://stackoverflow.com/questions/5283103/using-vector-graphics-in-iphone-games

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