dagon v0.12.0-beta2 (2021-10-10T20:59:18Z)
Home
Dub
Repo
Emitter
dagon
graphics
particles
Undocumented in source.
class
Emitter :
EntityComponent
{
Particle
[]
particles
;
double
minLifetime
;
double
maxLifetime
;
float
minSize
;
float
maxSize
;
Vector3f
scaleStep
;
float
rotationStep
;
float
initialPositionRandomRadius
;
float
minInitialSpeed
;
float
maxInitialSpeed
;
Vector3f
initialDirection
;
float
initialDirectionRandomFactor
;
Color4f
startColor
;
Color4f
endColor
;
float
airFrictionDamping
;
bool
emitting
;
Material
material
;
Entity
particleEntity
;
this
(Entity e, ParticleSystem psys, uint numParticles);
~this
();
void
resetParticle
(Particle p);
}
Constructors
this
this
(Entity e, ParticleSystem psys, uint numParticles)
Undocumented in source.
Destructor
~this
~this
()
Undocumented in source.
Members
Functions
resetParticle
void
resetParticle
(Particle p)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
airFrictionDamping
float
airFrictionDamping
;
Undocumented in source.
emitting
bool
emitting
;
Undocumented in source.
endColor
Color4f
endColor
;
Undocumented in source.
initialDirection
Vector3f
initialDirection
;
Undocumented in source.
initialDirectionRandomFactor
float
initialDirectionRandomFactor
;
Undocumented in source.
initialPositionRandomRadius
float
initialPositionRandomRadius
;
Undocumented in source.
material
Material
material
;
Undocumented in source.
maxInitialSpeed
float
maxInitialSpeed
;
Undocumented in source.
maxLifetime
double
maxLifetime
;
Undocumented in source.
maxSize
float
maxSize
;
Undocumented in source.
minInitialSpeed
float
minInitialSpeed
;
Undocumented in source.
minLifetime
double
minLifetime
;
Undocumented in source.
minSize
float
minSize
;
Undocumented in source.
particleEntity
Entity
particleEntity
;
Undocumented in source.
particles
Particle
[]
particles
;
Undocumented in source.
rotationStep
float
rotationStep
;
Undocumented in source.
scaleStep
Vector3f
scaleStep
;
Undocumented in source.
startColor
Color4f
startColor
;
Undocumented in source.
Inherited Members
From EntityComponent
entity
Entity
entity
;
Undocumented in source.
update
void
update
(Time t)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void
render
(GraphicsState* state)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
dagon
graphics
particles
classes
Attractor
BlackHole
ColorChanger
Deflector
Emitter
ForceField
ParticleSystem
Vortex
functions
entityIsParticleSystem
structs
Particle