Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/parts.cc')
-rw-r--r--src/model/parts.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/model/parts.cc b/src/model/parts.cc
index d4ff20b..bcd8446 100644
--- a/src/model/parts.cc
+++ b/src/model/parts.cc
@@ -11,17 +11,20 @@ namespace model {
/* ---- class Light ------------------------------------------------ */
Light::Light() :
- light_location(),
+ Part(),
light_color(1.0f, 1.0f, 1.0f)
{
light_entity = false;
+ light_engine = false;
light_strobe = false;
+
light_radius = 1.0f;
light_frequency = 1.0f;
light_offset = 0.0f;
light_time = 0.5f;
+
light_flare = 0;
- light_engine = 0;
+
render_texture = 0;
}
@@ -32,7 +35,6 @@ Light::~Light()
Flare::Flare() : Light()
{
- flare_engine = false;
flare_cull = CullBack;
}
@@ -42,7 +44,7 @@ Flare::~Flare()
/* ---- class Particles -------------------------------------------- */
Particles::Particles() :
- particles_location()
+ Part()
{
particles_entity = false;
particles_engine = false;
@@ -51,16 +53,12 @@ Particles::Particles() :
}
Particles::Particles(math::Vector3f const & location) :
- particles_location(location)
+ Part(location)
{
}
Particles::~Particles()
-{}
-
-void Particles::set_radius(const float radius)
{
- particles_radius = radius;
}
/* ---- class Dock ------------------------------------------------- */