From bab6eff9da1927a4fc1e22d97e56199c1b677670 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 14 Aug 2009 11:37:10 +0000 Subject: model API cleanup, render WORLDSCALE --- src/model/parts.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/model/parts.cc') 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 ------------------------------------------------- */ -- cgit v1.2.3