Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-18 19:21:57 +0000
committerStijn Buys <ingar@osirion.org>2010-11-18 19:21:57 +0000
commita3b3dbf3ced35ae4c0aca148d89509a12f785062 (patch)
tree6fc93069f70eb6059d056a00790be818df2c2f9f /src/render/particles.h
parent138dbc83d5720c8baa7270ece183ce356f619fce (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.h18
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;