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

#import <CCParticleSystemQuad.h>

+ Inheritance diagram for CCParticleSystemQuad:
+ Collaboration diagram for CCParticleSystemQuad:

List of all members.

Public Member Functions

(void) - initIndices
(void) - initTexCoordsWithRect:
(void) - setDisplayFrame:
(void) - setTexture:withRect:

Protected Attributes

ccV3F_C4B_T2F_Quad_quads
GLushort * _indices
GLuint _VAOname
GLuint _buffersVBO [2]

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

Member Function 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: