summary refs log tree commit diff stats
path: root/libs/cocos2d/CCParticleSystemQuad.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/CCParticleSystemQuad.h
downloadcartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip
Initial commit (version 0.2.1)
Diffstat (limited to 'libs/cocos2d/CCParticleSystemQuad.h')
-rwxr-xr-xlibs/cocos2d/CCParticleSystemQuad.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/libs/cocos2d/CCParticleSystemQuad.h b/libs/cocos2d/CCParticleSystemQuad.h new file mode 100755 index 0000000..74a9d93 --- /dev/null +++ b/libs/cocos2d/CCParticleSystemQuad.h
@@ -0,0 +1,76 @@
1/*
2 * cocos2d for iPhone: http://www.cocos2d-iphone.org
3 *
4 * Copyright (c) 2009 Leonardo Kasperavičius
5 *
6 * Copyright (c) 2008-2010 Ricardo Quesada
7 * Copyright (c) 2011 Zynga Inc.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 * THE SOFTWARE.
26 *
27 */
28
29
30#import "CCParticleSystem.h"
31#import "ccConfig.h"
32
33@class CCSpriteFrame;
34
35/** CCParticleSystemQuad is a subclass of CCParticleSystem
36
37 It includes all the features of ParticleSystem.
38
39 Special features and Limitations:
40 - Particle size can be any float number.
41 - The system can be scaled
42 - The particles can be rotated
43 - On 1st and 2nd gen iPhones: It is only a bit slower that CCParticleSystemPoint
44 - On 3rd gen iPhone and iPads: It is MUCH faster than CCParticleSystemPoint
45 - It consumes more RAM and more GPU memory than CCParticleSystemPoint
46 - It supports subrects
47 @since v0.8
48 */
49@interface CCParticleSystemQuad : CCParticleSystem
50{
51 ccV2F_C4B_T2F_Quad *quads_; // quads to be rendered
52 GLushort *indices_; // indices
53#if CC_USES_VBO
54 GLuint quadsID_; // VBO id
55#endif
56}
57
58/** initialices the indices for the vertices */
59-(void) initIndices;
60
61/** initilizes the texture with a rectangle measured Points */
62-(void) initTexCoordsWithRect:(CGRect)rect;
63
64/** Sets a new CCSpriteFrame as particle.
65 WARNING: this method is experimental. Use setTexture:withRect instead.
66 @since v0.99.4
67 */
68-(void)setDisplayFrame:(CCSpriteFrame*)spriteFrame;
69
70/** Sets a new texture with a rect. The rect is in Points.
71 @since v0.99.4
72 */
73-(void) setTexture:(CCTexture2D *)texture withRect:(CGRect)rect;
74
75@end
76