Class CCParticleSystemQuad

#include <Geode/cocos/particle_nodes/CCParticleSystemQuad.h>
classCCParticleSystemQuad:publiccocos2d::CCParticleSystem{ ... }

Since v0.8

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
Examples0
Public static methods4
staticcocos2d::CCParticleSystemQuad*create(
charconst*plistFile
)

creates an initializes a CCParticleSystemQuad from a plist file. This plist files can be created manually or with Particle Designer:

staticcocos2d::CCParticleSystemQuad*create()
No description provided
staticcocos2d::CCParticleSystemQuad*create(,)
No description provided
staticcocos2d::CCParticleSystemQuad*createWithTotalParticles(
uintnumberOfParticles
,)
No description provided
Public member functions15
voidinitIndices()

initializes the indices for the vertices

voidinitTexCoordsWithRect()

initializes the texture with a rectangle measured Points

voidsetDisplayFrame()

Since v0.99.4

Sets a new CCSpriteFrame as particle. WARNING: this method is experimental. Use setTexture:withRect instead.

voidsetTextureWithRect(,)

Since v0.99.4

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

virtualboolinitWithTotalParticles(
uintnumberOfParticles
,)

super methods

virtualvoidsetTexture()
No description provided
virtualvoidupdateQuadWithParticle(,)
No description provided
virtualvoidpostStep()
No description provided
virtualvoiddraw()
No description provided
virtualvoidsetBatchNode()
No description provided
virtualvoidsetTotalParticles()
No description provided
voidlistenBackToForeground()

listen the event that coming to foreground on Android

uchargetOpacity()
No description provided
voidsetOpacity()
No description provided
voidupdateTexCoords()
No description provided
Fields0
Protected member functions0
Protected fields3
;
No description provided
GLushort*m_pIndices
;
No description provided
GLuint[2]m_pBuffersVBO
;
No description provided