From 24b712a956a48f43788e1c11e121aedf52e22278 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 26 Nov 2018 08:37:17 +0800 Subject: =?UTF-8?q?*=E7=B2=92=E5=AD=90=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/particles/je_particle_system.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/libjin/graphics/particles/je_particle_system.h') 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: /// @@ -48,11 +48,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. /// @@ -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); -- cgit v1.1-26-g67d0