diff options
Diffstat (limited to 'source/gameengine/Converter/BlenderWorldInfo.h')
-rw-r--r-- | source/gameengine/Converter/BlenderWorldInfo.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/source/gameengine/Converter/BlenderWorldInfo.h b/source/gameengine/Converter/BlenderWorldInfo.h index b500c55a7f2..e7b8784a076 100644 --- a/source/gameengine/Converter/BlenderWorldInfo.h +++ b/source/gameengine/Converter/BlenderWorldInfo.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file BlenderWorldInfo.h + * \ingroup bgeconv + */ + #ifndef __BLENDERWORLDINFO_H #define __BLENDERWORLDINFO_H #include "MT_CmMatrix4x4.h" @@ -35,23 +40,17 @@ class BlenderWorldInfo : public KX_WorldInfo { bool m_hasworld; - float m_backgroundred; - float m_backgroundgreen; - float m_backgroundblue; + float m_backgroundcolor[3]; bool m_hasmist; float m_miststart; float m_mistdistance; - float m_mistred; - float m_mistgreen; - float m_mistblue; + float m_mistcolor[3]; - float m_ambientred; - float m_ambientgreen; - float m_ambientblue; + float m_ambientcolor[3]; public: - BlenderWorldInfo(struct World* blenderworld); + BlenderWorldInfo(struct Scene *blenderscene, struct World* blenderworld); ~BlenderWorldInfo(); bool hasWorld(); @@ -70,6 +69,12 @@ public: float getMistColorGreen(); float getMistColorBlue(); + void + setBackColor( + float r, + float g, + float b + ); void setMistStart( float d |