CCEffectStack Class Reference
| Inherits from | CCEffect : NSObject |
| Declared in | CCEffectStack.h |
Overview
CCEffectStack allows multiple effects to be stacked together to form interesting visual combinations. Effect stacks are immutable in the sense that the effects they contain cannot be changed once the stack is created. However, the parameters of the contained effects can be changed.
Tasks
Accessing Stack Attributes
-
effectCountproperty
Initializing a CCEffectStack object
Creating a CCEffectStack object
Accessing Contained Effects
Properties
effectCount
The number of effects contained in the stack.
@property (nonatomic, readonly) NSUInteger effectCountDeclared In
CCEffectStack.hClass Methods
Instance Methods
effectAtIndex:
Retrieve a contained effect.
- (CCEffect *)effectAtIndex:(NSUInteger)effectIndexParameters
- effectIndex
The index of the effect object to retrieve.
Return Value
The selected effect object.
Declared In
CCEffectStack.hinit
Initializes an empty effect stack object.
- (id)initReturn Value
The CCEffectStack object.
Declared In
CCEffectStack.h