diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-14 11:37:10 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-14 11:37:10 +0000 |
commit | bab6eff9da1927a4fc1e22d97e56199c1b677670 (patch) | |
tree | 14a06a6abd5b74c8b368b992594cb2f3133ab553 /src/model/parts.cc | |
parent | 69d54b593f96c0f7e525c0dff560ca0614071cf3 (diff) |
model API cleanup, render WORLDSCALE
Diffstat (limited to 'src/model/parts.cc')
-rw-r--r-- | src/model/parts.cc | 16 |
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 ------------------------------------------------- */ |