cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
/Users/rquesada/progs/cocos2d-iphone/cocos2d/CCParticleExamples.h
00001 /*
00002  * cocos2d for iPhone: http://www.cocos2d-iphone.org
00003  *
00004  * Copyright (c) 2008-2010 Ricardo Quesada
00005  * Copyright (c) 2011 Zynga Inc.
00006  * 
00007  * Permission is hereby granted, free of charge, to any person obtaining a copy
00008  * of this software and associated documentation files (the "Software"), to deal
00009  * in the Software without restriction, including without limitation the rights
00010  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011  * copies of the Software, and to permit persons to whom the Software is
00012  * furnished to do so, subject to the following conditions:
00013  * 
00014  * The above copyright notice and this permission notice shall be included in
00015  * all copies or substantial portions of the Software.
00016  * 
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00020  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00021  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00022  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00023  * THE SOFTWARE.
00024  *
00025  */
00026 
00027 
00028 #import <Availability.h>
00029 
00030 #import "CCParticleSystemPoint.h"
00031 #import "CCParticleSystemQuad.h"
00032 
00033 // build each architecture with the optimal particle system
00034 
00035 // ARMv7, Mac or Simulator use "Quad" particle
00036 #if defined(__ARM_NEON__) || defined(__MAC_OS_X_VERSION_MAX_ALLOWED) || TARGET_IPHONE_SIMULATOR
00037         #define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemQuad
00038 
00039 // ARMv6 use "Point" particle
00040 #elif __arm__
00041         #define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemPoint
00042 #else
00043         #error(unknown architecture)
00044 #endif
00045 
00046 
00048 @interface CCParticleFire: ARCH_OPTIMAL_PARTICLE_SYSTEM
00049 {
00050 }
00051 @end
00052 
00054 @interface CCParticleFireworks : ARCH_OPTIMAL_PARTICLE_SYSTEM
00055 {
00056 }
00057 @end
00058 
00060 @interface CCParticleSun : ARCH_OPTIMAL_PARTICLE_SYSTEM
00061 {
00062 }
00063 @end
00064 
00066 @interface CCParticleGalaxy : ARCH_OPTIMAL_PARTICLE_SYSTEM
00067 {
00068 }
00069 @end
00070 
00072 @interface CCParticleFlower : ARCH_OPTIMAL_PARTICLE_SYSTEM
00073 {
00074 }
00075 @end
00076 
00078 @interface CCParticleMeteor : ARCH_OPTIMAL_PARTICLE_SYSTEM
00079 {
00080 }
00081 @end
00082 
00084 @interface CCParticleSpiral : ARCH_OPTIMAL_PARTICLE_SYSTEM
00085 {
00086 }
00087 @end
00088 
00090 @interface CCParticleExplosion : ARCH_OPTIMAL_PARTICLE_SYSTEM
00091 {
00092 }
00093 @end
00094 
00096 @interface CCParticleSmoke : ARCH_OPTIMAL_PARTICLE_SYSTEM
00097 {
00098 }
00099 @end
00100 
00102 @interface CCParticleSnow : ARCH_OPTIMAL_PARTICLE_SYSTEM
00103 {
00104 }
00105 @end
00106 
00108 @interface CCParticleRain : ARCH_OPTIMAL_PARTICLE_SYSTEM
00109 {
00110 }
00111 @end
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4