|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.koboldtouch.com developers
|
#import <CCParticleSystemQuad.h>
Instance Methods | |
| (void) | - initIndices |
| (void) | - initTexCoordsWithRect: |
| (void) | - setDisplayFrame: |
| (void) | - setTexture:withRect: |
| Instance Methods inherited from CCParticleSystem | |
| (id) | - initWithFile: |
| (id) | - initWithDictionary: |
| (id) | - initWithDictionary:path: |
| (id) | - initWithTotalParticles: |
| Initializes a system with a fixed number of particles. More... | |
| (void) | - stopSystem |
| stop emitting particles. Running particles will continue to run until they die More... | |
| (void) | - resetSystem |
| Kill all living particles. More... | |
| (BOOL) | - isFull |
| whether or not the system is full More... | |
| (void) | - updateQuadWithParticle:newPosition: |
| should be overriden by subclasses More... | |
| (void) | - postStep |
| should be overriden by subclasses More... | |
| (void) | - update: |
| called in every loop. More... | |
| (void) | - updateWithNoTime |
| Instance Methods inherited from CCNode | |
| (id) | - init |
| (void) | - onEnter |
| (void) | - onEnterTransitionDidFinish |
| (void) | - onExit |
| (void) | - onExitTransitionDidStart |
| (void) | - addChild: |
| (void) | - addChild:z: |
| (void) | - addChild:z:tag: |
| (void) | - removeFromParent |
| (void) | - removeFromParentAndCleanup: |
| (void) | - removeChild: |
| (void) | - removeChild:cleanup: |
| (void) | - removeChildByTag: |
| (void) | - removeChildByTag:cleanup: |
| (void) | - removeAllChildren |
| (void) | - removeAllChildrenWithCleanup: |
| (CCNode *) | - getChildByTag: |
| (void) | - reorderChild:z: |
| (void) | - sortAllChildren |
| (void) | - cleanup |
| (void) | - draw |
| (void) | - visit |
| (void) | - transform |
| (void) | - transformAncestors |
| (CGRect) | - boundingBox |
| (CCAction *) | - runAction: |
| (void) | - stopAllActions |
| (void) | - stopAction: |
| (void) | - stopActionByTag: |
| (CCAction *) | - getActionByTag: |
| (NSUInteger) | - numberOfRunningActions |
| (void) | - scheduleUpdate |
| (void) | - scheduleUpdateWithPriority: |
| (void) | - unscheduleUpdate |
| (void) | - schedule: |
| (void) | - schedule:interval: |
| (void) | - schedule:interval:repeat:delay: |
| (void) | - scheduleOnce:delay: |
| (void) | - unschedule: |
| (void) | - unscheduleAllSelectors |
| (void) | - resumeSchedulerAndActions |
| (void) | - pauseSchedulerAndActions |
| (CGAffineTransform) | - nodeToParentTransform |
| (CGAffineTransform) | - parentToNodeTransform |
| (CGAffineTransform) | - nodeToWorldTransform |
| (CGAffineTransform) | - worldToNodeTransform |
| (CGPoint) | - convertToNodeSpace: |
| (CGPoint) | - convertToWorldSpace: |
| (CGPoint) | - convertToNodeSpaceAR: |
| (CGPoint) | - convertToWorldSpaceAR: |
| (CGPoint) | - convertTouchToNodeSpace: |
| (CGPoint) | - convertTouchToNodeSpaceAR: |
| (void) | - setIsRelativeAnchorPoint: |
| (BOOL) | - DEPRECATED_ATTRIBUTE |
| (void) | - setZOrder: |
| Instance Methods inherited from <CCTextureProtocol> | |
| (CCTexture2D *) | - texture |
| (void) | - setTexture: |
| Instance Methods inherited from <CCBlendProtocol> | |
| (void) | - setBlendFunc: |
| (ccBlendFunc) | - blendFunc |
Protected Attributes | |
| ccV3F_C4B_T2F_Quad * | _quads |
| GLushort * | _indices |
| GLuint | _VAOname |
| GLuint | _buffersVBO [2] |
| Protected Attributes inherited from CCParticleSystem | |
| BOOL | _active |
| float | _duration |
| float | _elapsed |
| CGPoint | _sourcePosition |
| CGPoint | _posVar |
| float | _angle |
| float | _angleVar |
| NSInteger | _emitterMode |
| union { | |
| struct { | |
| CGPoint gravity | |
| float speed | |
| float speedVar | |
| float tangentialAccel | |
| float tangentialAccelVar | |
| float radialAccel | |
| float radialAccelVar | |
| } A | |
| struct { | |
| float startRadius | |
| float startRadiusVar | |
| float endRadius | |
| float endRadiusVar | |
| float rotatePerSecond | |
| float rotatePerSecondVar | |
| } B | |
| } | _mode |
| float | _startSize |
| float | _startSizeVar |
| float | _endSize |
| float | _endSizeVar |
| float | _life |
| float | _lifeVar |
| ccColor4F | _startColor |
| ccColor4F | _startColorVar |
| ccColor4F | _endColor |
| ccColor4F | _endColorVar |
| float | _startSpin |
| float | _startSpinVar |
| float | _endSpin |
| float | _endSpinVar |
| tCCParticle * | _particles |
| NSUInteger | _totalParticles |
| NSUInteger | _particleCount |
| NSUInteger | _allocatedParticles |
| float | _emissionRate |
| float | _emitCounter |
| CCTexture2D * | _texture |
| ccBlendFunc | _blendFunc |
| BOOL | _opacityModifyRGB |
| tCCPositionType | _positionType |
| BOOL | _autoRemoveOnFinish |
| NSUInteger | _particleIdx |
| CC_UPDATE_PARTICLE_IMP | _updateParticleImp |
| SEL | _updateParticleSel |
| CCParticleBatchNode * | _batchNode |
| NSUInteger | _atlasIndex |
| BOOL | _transformSystemDirty |
| Protected Attributes inherited from CCNode | |
| float | _rotationX |
| float | _rotationY |
| float | _scaleX |
| float | _scaleY |
| float | _vertexZ |
| CGPoint | _position |
| float | _skewX |
| float | _skewY |
| CGPoint | _anchorPointInPoints |
| CGPoint | _anchorPoint |
| CGSize | _contentSize |
| CGAffineTransform | _transform |
| CGAffineTransform | _inverse |
| BOOL | _isTransformDirty |
| BOOL | _isInverseDirty |
| CCCamera * | _camera |
| CCGridBase * | _grid |
| NSInteger | _zOrder |
| CCArray * | _children |
| CCNode * | _parent |
| NSInteger | _tag |
| void * | _userData |
| id | _userObject |
| CCGLProgram * | _shaderProgram |
| ccGLServerState | _glServerState |
| NSUInteger | _orderOfArrival |
| CCScheduler * | _scheduler |
| CCActionManager * | _actionManager |
| BOOL | _isRunning |
| BOOL | _visible |
| BOOL | _ignoreAnchorPointForPosition |
| BOOL | _isReorderChildDirty |
Additional Inherited Members | |
| Class Methods inherited from CCParticleSystem | |
| (id) | + particleWithFile: |
| (id) | + particleWithTotalParticles: |
| Properties inherited from CCParticleSystem | |
| BOOL | active |
| NSUInteger | particleCount |
| float | duration |
| CGPoint | sourcePosition |
| CGPoint | posVar |
| float | life |
| float | lifeVar |
| float | angle |
| float | angleVar |
| float | startSize |
| float | startSizeVar |
| float | endSize |
| float | endSizeVar |
| ccColor4F | startColor |
| ccColor4F | startColorVar |
| ccColor4F | endColor |
| ccColor4F | endColorVar |
| float | startSpin |
| float | startSpinVar |
| float | endSpin |
| float | endSpinVar |
| float | emissionRate |
| NSUInteger | totalParticles |
| CCTexture2D * | texture |
| ccBlendFunc | blendFunc |
| BOOL | opacityModifyRGB |
| BOOL | blendAdditive |
| tCCPositionType | positionType |
| BOOL | autoRemoveOnFinish |
| NSInteger | emitterMode |
| CCParticleBatchNode * | batchNode |
| NSUInteger | atlasIndex |
CCParticleSystemQuad is a subclass of CCParticleSystem
It includes all the features of ParticleSystem.
Special features and Limitations:
| - (void) initIndices |
initialices the indices for the vertices
| - (void) initTexCoordsWithRect: | (CGRect) | rect |
initilizes the texture with a rectangle measured Points
| - (void) setDisplayFrame: | (CCSpriteFrame *) | spriteFrame |
Sets a new CCSpriteFrame as particle. WARNING: this method is experimental. Use setTexture:withRect instead.
| - (void) setTexture: | (CCTexture2D *) | texture | |
| withRect: | (CGRect) | rect | |
Sets a new texture with a rect. The rect is in Points.