summary refs log tree commit diff stats
path: root/libs/cocos2d/CCParticleExamples.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
committerStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
commit9cd57b731ab1c666d4a1cb725538fdc137763d12 (patch)
tree5bac45ae5157a1cb10c6e45500cbf72789917980 /libs/cocos2d/CCParticleExamples.h
downloadcartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip
Initial commit (version 0.2.1)
Diffstat (limited to 'libs/cocos2d/CCParticleExamples.h')
-rwxr-xr-xlibs/cocos2d/CCParticleExamples.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/libs/cocos2d/CCParticleExamples.h b/libs/cocos2d/CCParticleExamples.h new file mode 100755 index 0000000..cd382c4 --- /dev/null +++ b/libs/cocos2d/CCParticleExamples.h
@@ -0,0 +1,111 @@
1/*
2 * cocos2d for iPhone: http://www.cocos2d-iphone.org
3 *
4 * Copyright (c) 2008-2010 Ricardo Quesada
5 * Copyright (c) 2011 Zynga Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 * THE SOFTWARE.
24 *
25 */
26
27
28#import <Availability.h>
29
30#import "CCParticleSystemPoint.h"
31#import "CCParticleSystemQuad.h"
32
33// build each architecture with the optimal particle system
34
35// ARMv7, Mac or Simulator use "Quad" particle
36#if defined(__ARM_NEON__) || defined(__MAC_OS_X_VERSION_MAX_ALLOWED) || TARGET_IPHONE_SIMULATOR
37 #define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemQuad
38
39// ARMv6 use "Point" particle
40#elif __arm__
41 #define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemPoint
42#else
43 #error(unknown architecture)
44#endif
45
46
47//! A fire particle system
48@interface CCParticleFire: ARCH_OPTIMAL_PARTICLE_SYSTEM
49{
50}
51@end
52
53//! A fireworks particle system
54@interface CCParticleFireworks : ARCH_OPTIMAL_PARTICLE_SYSTEM
55{
56}
57@end
58
59//! A sun particle system
60@interface CCParticleSun : ARCH_OPTIMAL_PARTICLE_SYSTEM
61{
62}
63@end
64
65//! A galaxy particle system
66@interface CCParticleGalaxy : ARCH_OPTIMAL_PARTICLE_SYSTEM
67{
68}
69@end
70
71//! A flower particle system
72@interface CCParticleFlower : ARCH_OPTIMAL_PARTICLE_SYSTEM
73{
74}
75@end
76
77//! A meteor particle system
78@interface CCParticleMeteor : ARCH_OPTIMAL_PARTICLE_SYSTEM
79{
80}
81@end
82
83//! An spiral particle system
84@interface CCParticleSpiral : ARCH_OPTIMAL_PARTICLE_SYSTEM
85{
86}
87@end
88
89//! An explosion particle system
90@interface CCParticleExplosion : ARCH_OPTIMAL_PARTICLE_SYSTEM
91{
92}
93@end
94
95//! An smoke particle system
96@interface CCParticleSmoke : ARCH_OPTIMAL_PARTICLE_SYSTEM
97{
98}
99@end
100
101//! An snow particle system
102@interface CCParticleSnow : ARCH_OPTIMAL_PARTICLE_SYSTEM
103{
104}
105@end
106
107//! A rain particle system
108@interface CCParticleRain : ARCH_OPTIMAL_PARTICLE_SYSTEM
109{
110}
111@end