v2.0.2
Instance Methods | List of all members
CC3Material(PFXEffects) Category Reference

#import <CC3PFXResource.h>

Instance Methods

(void) - applyEffectNamed:inPFXResourceFile:
 
(void) - applyEffectNamed:inPFXResourceNamed:
 

Detailed Description

Extension to support PFX effects.

Method Documentation

- (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.


The documentation for this category was generated from the following file: