diff options
author | chai <chaifix@163.com> | 2018-11-26 08:37:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-26 08:37:17 +0800 |
commit | 24b712a956a48f43788e1c11e121aedf52e22278 (patch) | |
tree | 0bbccc98f1cb24c44cfb58ca99ce305b9f513e09 /src/libjin/graphics/particles/je_particle_system.h | |
parent | 1d54138b94a384917d47abd8109c586b1b7ac323 (diff) |
*粒子系统
Diffstat (limited to 'src/libjin/graphics/particles/je_particle_system.h')
-rw-r--r-- | src/libjin/graphics/particles/je_particle_system.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/libjin/graphics/particles/je_particle_system.h b/src/libjin/graphics/particles/je_particle_system.h index 20f39dc..b3640d4 100644 --- a/src/libjin/graphics/particles/je_particle_system.h +++ b/src/libjin/graphics/particles/je_particle_system.h @@ -33,7 +33,7 @@ namespace JinEngine /// /// Particle emitter, handle all particles it emitts. /// - class ParticleSystem : public IRenderable, public Game::GameObject + class ParticleSystem : public Renderable, public Game::GameObject { public: /// @@ -49,11 +49,26 @@ namespace JinEngine ParticleSystem(uint maxCount = 64); /// + /// + /// + ParticleSystem(const std::string & config); + + /// /// Particle system destructor. /// ~ParticleSystem(); /// + /// + /// + void setDefinition(const ParticleSystemDef& def); + + /// + /// Load definition from config. + /// + void setDefinition(const std::string& config); + + /// /// Update particle system and all alive particles. /// void update(float dt); @@ -124,8 +139,8 @@ namespace JinEngine void addParticleScalePoint(float scale, float t); void removeParticleScalePoint(uint i); - void setParticleColor(Color color); - void addParticleColorPoint(Color color, float t); + void setParticleColor(Color tint); + void addParticleColorPoint(Color tint, float t); void removeParticleColorPoint(uint i); void setParticleTransparency(float transparency); |