问题描述
所有的问题,我已经工作足够cocos2d说,这是一个伟大的图书馆,但今天我只想在一个完整的UIKit项目中使用粒子系统。只要我知道,不幸的是,我必须实现一个与OpenGL。
任何建议?
All is in the question, I've worked enough with cocos2d to say it's a great library but today I only wanna use particle system in a total UIKit project. As long as I know, unfortunately, I have to implement one with OpenGL.Any suggestions ?
推荐答案
您可以使用Core Animation和生成粒子系统,而不必下拉到OpenGL ES。 Joe Ricioppo的介绍了如何使用这个类。此外,Apple还拥有其示例应用程序,其中我。
You can use Core Animation and CAReplicatorLayer to generate particle systems without having to drop down to OpenGL ES. Joe Ricioppo's "To 1e100f And Beyond with CAReplicatorLayer" gives an introduction to how to use this class. Also, Apple has their ReplicatorDemo sample application, which I ported to the iPad.
在Mac上,还请参阅,在iOS 5.0中可用。 Apple的示例应用程序包括,其中显示了火灾和烟雾的影响,以及模拟烟火显示的。
On the Mac, there's also the CAEmitterLayer, which became available in iOS as of 5.0. Apple's sample applications for this include Fire, which shows off fire and smoke effects, and Fireworks, which simulates a fireworks display.
这篇关于什么是最简单的方法来实现粒子系统没有openGL和cocos2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!