Class ParticleSourceInterface
Definition
- Namespace:
- Tizen.NUI.ParticleSystem
- Assembly:
- Tizen.NUI.dll
ParticleSourceInterface provides callbacks in order to define how new particles are emitted.
public class ParticleSourceInterface
- Inheritance
-
objectParticleSourceInterface
Constructors
View SourceParticleSourceInterface()
Constructor
Declaration
public ParticleSourceInterface()
Fields
View SourceEmitter
ParticleEmitter proxy that can be accessed by the user implementation
Declaration
public ParticleEmitterProxy Emitter
Field Value
Type | Description |
---|---|
ParticleEmitterProxy |
Methods
View SourceConstruct(params object[])
Second constructor
Declaration
public virtual void Construct(params object[] list)
Parameters
Type | Name | Description |
---|---|---|
object[] | list | List of arguments |
Remarks
Second constructor should be overriden by the implementation. It allows passing variable number of arguments for processing. It is called immediately following the class constructor.
Init()
Initializes ParticleSource
Declaration
public virtual void Init()
Remarks
This callback should be overriden in order to initialise the ParticleSource. It is called after ParticleEmitter.SetSource() and runs on the Event thread. It is the only place where ParticleSource may use NUI objects.
Update(ParticleEmitterProxy, uint)
Updates the ParticleSource.
Declaration
public virtual uint Update(ParticleEmitterProxy emitterProxy, uint count)
Parameters
Type | Name | Description |
---|---|---|
ParticleEmitterProxy | emitterProxy | Proxy to the ParticleEmitter object |
uint | count | Number of particles emitter expects to be spawned during call |
Returns
Type | Description |
---|---|
uint | Number of spawned particles |
Remarks
This callback is responsible for spawning new particles. To spawn new particle, emitter.NewParticle() must be call. Number of particles to emit is given as 'count'.
This callback runs on the Update thread! It should avoid using NUI objects.