summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/engine')
-rw-r--r--src/graphics/engine/lightman.cpp10
-rw-r--r--src/graphics/engine/lightman.h18
2 files changed, 14 insertions, 14 deletions
diff --git a/src/graphics/engine/lightman.cpp b/src/graphics/engine/lightman.cpp
index 8694c7a..564cced 100644
--- a/src/graphics/engine/lightman.cpp
+++ b/src/graphics/engine/lightman.cpp
@@ -69,16 +69,6 @@ void LightProgression::SetTarget(float value)
}
-DynamicLight::DynamicLight()
-{
- rank = 0;
- used = enabled = false;
- priority = LIGHT_PRI_LOW;
- includeType = excludeType = ENG_OBJTYPE_NULL;
-}
-
-
-
CLightManager::CLightManager(CEngine* engine)
{
m_device = nullptr;
diff --git a/src/graphics/engine/lightman.h b/src/graphics/engine/lightman.h
index a2f6044..5df466d 100644
--- a/src/graphics/engine/lightman.h
+++ b/src/graphics/engine/lightman.h
@@ -51,9 +51,12 @@ struct LightProgression
float speed;
LightProgression()
- {
- starting = ending = current = progress = speed = 0.0f;
- }
+ : starting(0.0f)
+ , ending(0.0f)
+ , current(0.0f)
+ , progress(0.0f)
+ , speed(0.0f)
+ {}
//! Initializes the progression
void Init(float value);
@@ -113,7 +116,14 @@ struct DynamicLight
//! Type of objects excluded from lighting with this light; if ENG_OBJTYPE_NULL is used, it is ignored
EngineObjectType excludeType;
- DynamicLight();
+ DynamicLight()
+ : rank(0)
+ , used(false)
+ , enabled(false)
+ , priority(LIGHT_PRI_LOW)
+ , includeType(ENG_OBJTYPE_NULL)
+ , excludeType(ENG_OBJTYPE_NULL)
+ {}
};
/**