|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.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. | |
| (void) | - stopSystem |
| stop emitting particles. Running particles will continue to run until they die | |
| (void) | - resetSystem |
| Kill all living particles. | |
| (BOOL) | - isFull |
| whether or not the system is full | |
| (void) | - updateQuadWithParticle:newPosition: |
| should be overriden by subclasses | |
| (void) | - postStep |
| should be overriden by subclasses | |
| (void) | - update: |
| called in every loop. | |
| (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 | |
| float | elapsed |
| 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 |
| tCCParticle * | particles |
| NSUInteger | allocatedParticles |
| 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_ |
| 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 | isTransformDirty_ |
| BOOL | isInverseDirty_ |
| 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.