Skip to main content

CCParticleSystemQuad

CCParticleSystemQuad

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCParticleSystem

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol

Constructors

CCParticleSystemQuad()

CCParticleSystemQuad()()

CCParticleSystemQuad(int)

CCParticleSystemQuad(int)(System.Int32 numberOfParticles)
Parameters:
numberOfParticles (System.Int32)

CCParticleSystemQuad(string)

CCParticleSystemQuad(string)(System.String plistFile)
Parameters:
plistFile (System.String)

Properties

BatchNode(Cocos2D.CCParticleBatchNode)
Texture(Cocos2D.CCTexture2D)

gets or sets a new texture. it will be retained

TotalParticles(System.Int32)

Methods

Clone()

Cocos2D.CCParticleSystemQuad Clone()()
Returns:
Cocos2D.CCParticleSystemQuad

Draw()

Draw()()

This is called from the Visit() method. This is where you DRAW your node. Only draw stuff from this method call.

Example

InitWithTotalParticles(int)

System.Boolean InitWithTotalParticles(int)(System.Int32 numberOfParticles)
Parameters:
numberOfParticles (System.Int32)
Returns:
System.Boolean
Example

SetDisplayFrame(CCSpriteFrame)

SetDisplayFrame(CCSpriteFrame)(Cocos2D.CCSpriteFrame spriteFrame)
Parameters:
spriteFrame (Cocos2D.CCSpriteFrame)

SetTextureWithRect(CCTexture2D, CCRect)

SetTextureWithRect(CCTexture2D, CCRect)(Cocos2D.CCTexture2D texture, Cocos2D.CCRect rect)
Parameters:
texture (Cocos2D.CCTexture2D)
rect (Cocos2D.CCRect)

UpdateQuadsWithParticles()

UpdateQuadsWithParticles()()
Example