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>2008-05-04 22:30:49 +0000
committerStijn Buys <ingar@osirion.org>2008-05-04 22:30:49 +0000
commit7218e3bd4616d4706090ec47d72845a2bb89c6a3 (patch)
treecbf3fdb0dddf573edff89b50af22e8a84690cf00 /src/model/light.cc
parent33e45d8052b385aa8b1fce68122c8d11f50e7e42 (diff)
split map reading from models
Diffstat (limited to 'src/model/light.cc')
-rw-r--r--src/model/light.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/model/light.cc b/src/model/light.cc
index 83a0cb8..f9f6b5c 100644
--- a/src/model/light.cc
+++ b/src/model/light.cc
@@ -8,6 +8,19 @@
namespace model {
+Light::Light() :
+ light_location(),
+ light_color(1.0f, 1.0f, 1.0f)
+{
+ light_strobe = false;
+ light_radius = 1.0f;
+ light_frequency = 1.0f;
+ light_offset = 0.0f;
+ light_time = 0.5f;
+ light_flare = 0;
+ render_texture = 0;
+}
+
Light::Light(math::Vector3f const & location, math::Color const & color, bool strobe) :
light_location(location),
light_color(color)