cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
CCParticleSystemQuad Class Reference

#import <CCParticleSystemQuad.h>

Inheritance diagram for CCParticleSystemQuad:
Collaboration diagram for CCParticleSystemQuad:

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_Quadquads_
 
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
 
tCCParticleparticles
 
NSUInteger allocatedParticles
 
float emitCounter
 
CCTexture2Dtexture_
 
ccBlendFunc blendFunc_
 
BOOL opacityModifyRGB_
 
tCCPositionType positionType_
 
BOOL autoRemoveOnFinish_
 
NSUInteger particleIdx
 
CC_UPDATE_PARTICLE_IMP updateParticleImp
 
SEL updateParticleSel
 
CCParticleBatchNodebatchNode_
 
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_
 
CCCameracamera_
 
CCGridBasegrid_
 
NSInteger zOrder_
 
CCArraychildren_
 
CCNodeparent_
 
NSInteger tag_
 
void * userData_
 
id userObject_
 
CCGLProgramshaderProgram_
 
ccGLServerState glServerState_
 
NSUInteger orderOfArrival_
 
CCSchedulerscheduler_
 
CCActionManageractionManager_
 
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
 
CCTexture2Dtexture
 
ccBlendFunc blendFunc
 
BOOL opacityModifyRGB
 
BOOL blendAdditive
 
tCCPositionType positionType
 
BOOL autoRemoveOnFinish
 
NSInteger emitterMode
 
CCParticleBatchNodebatchNode
 
NSUInteger atlasIndex
 

Detailed Description

CCParticleSystemQuad is a subclass of CCParticleSystem

It includes all the features of ParticleSystem.

Special features and Limitations:

  • Particle size can be any float number.
  • The system can be scaled
  • The particles can be rotated
  • It supports subrects
  • It supports batched rendering since 1.1
    Since
    v0.8

Method Documentation

- (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.

Since
v0.99.4
- (void) setTexture: (CCTexture2D *)  texture
withRect: (CGRect)  rect 

Sets a new texture with a rect. The rect is in Points.

Since
v0.99.4

The documentation for this class was generated from the following file: