Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Szepe <HG1_public@gmx.net>2015-03-23 23:40:11 +0300
committerThomas Szepe <HG1_public@gmx.net>2015-03-23 23:40:11 +0300
commitd07c666a0e542517914dad580d1b3f4787525852 (patch)
tree4f9c2c5999817acaca97351e72e71f3f19cb7652 /source/gameengine/Ketsji/KX_WorldInfo.h
parent2affbb437bd3cbf3e1a502bd65a5eefb64a92b9b (diff)
BGE: Add setMistType and setMistIntensity API.
This patch adds the missing setMistType() and setMistIntensity() to the API Reviewers: campbellbarton, brecht, moguri Reviewed By: campbellbarton, brecht, moguri Subscribers: campbellbarton, dingto Differential Revision: https://developer.blender.org/D149
Diffstat (limited to 'source/gameengine/Ketsji/KX_WorldInfo.h')
-rw-r--r--source/gameengine/Ketsji/KX_WorldInfo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_WorldInfo.h b/source/gameengine/Ketsji/KX_WorldInfo.h
index 251ba95f43a..f90a4ff6b6d 100644
--- a/source/gameengine/Ketsji/KX_WorldInfo.h
+++ b/source/gameengine/Ketsji/KX_WorldInfo.h
@@ -43,6 +43,15 @@ class MT_CmMatrix4x4;
class KX_WorldInfo
{
public:
+ /**
+ * Mist options
+ */
+ enum MistType {
+ KX_MIST_QUADRATIC,
+ KX_MIST_LINEAR,
+ KX_MIST_INV_QUADRATIC,
+ };
+
KX_WorldInfo() {}
virtual ~KX_WorldInfo();
@@ -51,8 +60,10 @@ public:
virtual float getBackColorRed() = 0;
virtual float getBackColorGreen() = 0;
virtual float getBackColorBlue() = 0;
+ virtual short getMistType() = 0;
virtual float getMistStart() = 0;
virtual float getMistDistance() = 0;
+ virtual float getMistIntensity() = 0;
virtual float getMistColorRed() = 0;
virtual float getMistColorGreen() = 0;
virtual float getMistColorBlue() = 0;
@@ -62,8 +73,10 @@ public:
virtual float getAmbientColorBlue() = 0;
virtual void setUseMist(bool enable) = 0;
+ virtual void setMistType(short) = 0;
virtual void setMistStart(float) = 0;
virtual void setMistDistance(float) = 0;
+ virtual void setMistIntensity(float) = 0;
virtual void setMistColor(float, float, float) = 0;
virtual void setBackColor(float, float, float) = 0;
virtual void setAmbientColor(float,float,float) = 0;