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>2009-08-13 12:49:49 +0000
committerStijn Buys <ingar@osirion.org>2009-08-13 12:49:49 +0000
commita320e55dc1a17cef3923643277f1112f74251d70 (patch)
tree617768887dff8a2779ec22e3413486d9ef142f49 /src/model/parts.h
parentd79f51d227cdc6ef71517ed2476041f3a9ed4d36 (diff)
documentation updates, win32 build fix, megatog's enginelight patch
Diffstat (limited to 'src/model/parts.h')
-rw-r--r--src/model/parts.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/model/parts.h b/src/model/parts.h
index 8593147..3e5e74f 100644
--- a/src/model/parts.h
+++ b/src/model/parts.h
@@ -31,7 +31,7 @@ class Light
public:
Light();
- Light(const math::Vector3f & location, const math::Color & color, bool strobe=false);
+ Light(const math::Vector3f & location, const math::Color & color, bool strobe=false, bool engine=false);
~Light();
@@ -86,6 +86,12 @@ public:
{
return light_flare;
}
+
+ /// true if this light has engine activation
+ inline const bool engine() const
+ {
+ return light_engine;
+ }
/// render texture number
inline size_t texture() const
@@ -97,6 +103,7 @@ public:
math::Color light_color;
bool light_strobe;
bool light_entity;
+ bool light_engine;
float light_radius;
float light_frequency;
float light_offset;