diff options
author | Thomas Szepe <HG1_public@gmx.net> | 2015-03-24 00:49:38 +0300 |
---|---|---|
committer | Thomas Szepe <HG1_public@gmx.net> | 2015-03-24 00:49:38 +0300 |
commit | 931c3e654404bbff05f1bcce9487fc6e91392300 (patch) | |
tree | 6b71c869a8827c2231f47db7a8d22a67cbc60380 /source/gameengine/Ketsji/KX_WorldInfo.h | |
parent | c73693d4a5c9b286333a90dd0fc6fd8a7e6ea753 (diff) |
BGE: Code clean up for world (mist, background, ambient)
Code clean up for BGE world mist, background and global ambient color.
Move mist render update to BlenderWolrdInfo
Reviewers: moguri, brecht
Reviewed By: moguri, brecht
Differential Revision: https://developer.blender.org/D152
Diffstat (limited to 'source/gameengine/Ketsji/KX_WorldInfo.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_WorldInfo.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/gameengine/Ketsji/KX_WorldInfo.h b/source/gameengine/Ketsji/KX_WorldInfo.h index f90a4ff6b6d..a6f93dd80ba 100644 --- a/source/gameengine/Ketsji/KX_WorldInfo.h +++ b/source/gameengine/Ketsji/KX_WorldInfo.h @@ -57,9 +57,6 @@ public: virtual bool hasWorld() = 0; virtual bool hasMist() = 0; - virtual float getBackColorRed() = 0; - virtual float getBackColorGreen() = 0; - virtual float getBackColorBlue() = 0; virtual short getMistType() = 0; virtual float getMistStart() = 0; virtual float getMistDistance() = 0; @@ -67,11 +64,12 @@ public: virtual float getMistColorRed() = 0; virtual float getMistColorGreen() = 0; virtual float getMistColorBlue() = 0; - + virtual float getBackColorRed() = 0; + virtual float getBackColorGreen() = 0; + virtual float getBackColorBlue() = 0; virtual float getAmbientColorRed() = 0; virtual float getAmbientColorGreen() = 0; virtual float getAmbientColorBlue() = 0; - virtual void setUseMist(bool enable) = 0; virtual void setMistType(short) = 0; virtual void setMistStart(float) = 0; @@ -80,7 +78,8 @@ public: virtual void setMistColor(float, float, float) = 0; virtual void setBackColor(float, float, float) = 0; virtual void setAmbientColor(float,float,float) = 0; - + virtual void UpdateBackGround() = 0; + virtual void UpdateWorldSettings() = 0; #ifdef WITH_CXX_GUARDEDALLOC MEM_CXX_CLASS_ALLOC_FUNCS("GE:KX_WorldInfo") |