MeiCam SDK For iOS  3.3.1
Instance Methods | List of all members
NvsParticleSystemContext Class Reference

Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter. More...

#import <NvsParticleSystemContext.h>

Inheritance diagram for NvsParticleSystemContext:

Instance Methods

(void) - setInternalContext:
 
(void) - setEmitterEnabled:emitterEnable:
 Set whether to enable the emitter. More...
 
(void) - setEmitterPosition:emitterPositionX:emitterPositionY:
 Set the particle emitter's position. More...
 
(void) - appendPositionToEmitterPositionCurve:curveTime:emitterPositionX:emitterPositionY:
 Apend a path position to the particle emitter curve at the specified time point. More...
 
(void) - setEmitterRateGain:emitterGain:
 Set the rate of the particles emitted by the particle emitter. More...
 
(void) - SetEmitterParticleSizeGain:emitterGain:
 Set the size of the particles emitted by the particle emitter. More...
 

Detailed Description

Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter.

Warning
In the NvsParticleSystemContext class, all public APIs are used in the UI thread! ! !

Method Documentation

◆ appendPositionToEmitterPositionCurve:curveTime:emitterPositionX:emitterPositionY:

- (void) appendPositionToEmitterPositionCurve: (NSString *)  emitterName
curveTime: (float)  time
emitterPositionX: (float)  x
emitterPositionY: (float)  y 

Apend a path position to the particle emitter curve at the specified time point.

Parameters
emitterNameemitter name
curveTimetime point
emitterPositionXparticle emitter's X coordinate
emitterPositionYparticle emitter's Y coordinate

◆ setEmitterEnabled:emitterEnable:

- (void) setEmitterEnabled: (NSString *)  emitterName
emitterEnable: (bool)  enable 

Set whether to enable the emitter.

Parameters
emitterNameemitter name
enableenable or disable, default mode is enable.

◆ SetEmitterParticleSizeGain:emitterGain:

- (void) SetEmitterParticleSizeGain: (NSString *)  emitterName
emitterGain: (float)  gain 

Set the size of the particles emitted by the particle emitter.

Parameters
emitterNameemitter name
emitterGainemission size gain

◆ setEmitterPosition:emitterPositionX:emitterPositionY:

- (void) setEmitterPosition: (NSString *)  emitterName
emitterPositionX: (float)  x
emitterPositionY: (float)  y 

Set the particle emitter's position.

Parameters
emitterNameemitter name
emitterPositionXparticle emitter's X coordinate
emitterPositionYparticle emitter's Y coordinate

◆ setEmitterRateGain:emitterGain:

- (void) setEmitterRateGain: (NSString *)  emitterName
emitterGain: (float)  gain 

Set the rate of the particles emitted by the particle emitter.

Parameters
emitterNameemitter name
emitterGainemission rate gain

◆ setInternalContext:

- (void) setInternalContext: (void *)  internalContext

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