#import <CC3PFXResource.h>
Instance Methods | |
(void) | - applyEffectNamed:inPFXResourceFile: |
(void) | - applyEffectNamed:inPFXResourceNamed: |
Extension to support PFX effects.
- (void) applyEffectNamed: | (NSString *) | effectName | |
inPFXResourceFile: | (NSString *) | filePath | |
Applies the PFX effect with the specified name, found in the CC3PFXResource loaded from the specfied file, to this material.
Sets the textures of this material to those defined by the retrieved PFX effect.
Raises an assertion error if the PFX resource file could not be loaded, or if that PFX resource does not contain an effect with the specified effect name.
Extends class CC3Material.
- (void) applyEffectNamed: | (NSString *) | effectName | |
inPFXResourceNamed: | (NSString *) | rezName | |
Applies the PFX effect with the specified name, found in the cached CC3PFXResource with the specifed name, to this material.
Sets the textures of this material to those defined by the retrieved PFX effect.
Raises an assertion error if a PFX resource with the specified name cannot be found in the PFX resource cache, or if that PFX resource does not contain an effect with the specified effect name.
Extends class CC3Material.