diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-18 19:21:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-18 19:21:57 +0000 |
commit | a3b3dbf3ced35ae4c0aca148d89509a12f785062 (patch) | |
tree | 6fc93069f70eb6059d056a00790be818df2c2f9f /src/render/particles.h | |
parent | 138dbc83d5720c8baa7270ece183ce356f619fce (diff) |
Corrected default light and flare radius.
Suppoort for entity, engine and color keys in fx_particles and particle scripts.
Have light, fx_flare and fx_particles color override engine color if the engine spawnflag is set.
Diffstat (limited to 'src/render/particles.h')
-rw-r--r-- | src/render/particles.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/render/particles.h b/src/render/particles.h index 909d027..a41065c 100644 --- a/src/render/particles.h +++ b/src/render/particles.h @@ -72,11 +72,25 @@ public: return particlescript_color; } + inline bool has_color() const { + return particlescript_has_color; + } + /// axis transformation relative to the ejector inline const math::Axis &axis() const { return particlescript_axis; } + /// true if entity color is to be applied + inline bool engine() const { + return particlescript_engine; + } + + /// true if engine color is to be applied + inline bool entity() const { + return particlescript_entity; + } + inline float radius() const { return particlescript_radius; } @@ -125,6 +139,10 @@ private: Type particlescript_type; math::Color particlescript_color; math::Axis particlescript_axis; + + bool particlescript_entity; + bool particlescript_engine; + bool particlescript_has_color; float particlescript_radius; float particlescript_timeout; |