Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_WorldInfo.h
| Show All 27 Lines | |||||
| /** \file KX_WorldInfo.h | /** \file KX_WorldInfo.h | ||||
| * \ingroup ketsji | * \ingroup ketsji | ||||
| */ | */ | ||||
| #ifndef __KX_WORLDINFO_H__ | #ifndef __KX_WORLDINFO_H__ | ||||
| #define __KX_WORLDINFO_H__ | #define __KX_WORLDINFO_H__ | ||||
| #include "MT_Scalar.h" | #include "MT_Scalar.h" | ||||
| #include "KX_KetsjiEngine.h" | |||||
| #include "RAS_IRasterizer.h" | |||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #endif | #endif | ||||
| class MT_CmMatrix4x4; | struct Scene; | ||||
| struct World; | |||||
| const class KX_KetsjiEngine; | |||||
| const class RAS_IRasterizer; | |||||
| class KX_WorldInfo | class KX_WorldInfo | ||||
| { | { | ||||
| bool m_do_color_management; | |||||
| bool m_hasworld; | |||||
| bool m_hasmist; | |||||
| short m_misttype; | |||||
| float m_miststart; | |||||
| float m_mistdistance; | |||||
| float m_mistintensity; | |||||
| float m_mistcolor[3]; | |||||
| float m_backgroundcolor[3]; | |||||
| float m_ambientcolor[3]; | |||||
| float m_con_mistcolor[3]; | |||||
| float m_con_backgroundcolor[3]; | |||||
| float m_con_ambientcolor[3]; | |||||
| public: | public: | ||||
| /** | /** | ||||
| * Mist options | * Mist options | ||||
| */ | */ | ||||
| enum MistType { | enum MistType { | ||||
| KX_MIST_QUADRATIC, | KX_MIST_QUADRATIC, | ||||
| KX_MIST_LINEAR, | KX_MIST_LINEAR, | ||||
| KX_MIST_INV_QUADRATIC, | KX_MIST_INV_QUADRATIC, | ||||
| }; | }; | ||||
| KX_WorldInfo() {} | KX_WorldInfo(Scene *blenderscene, World *blenderworld); | ||||
| virtual ~KX_WorldInfo(); | ~KX_WorldInfo(); | ||||
| virtual bool hasWorld() = 0; | bool hasWorld(); | ||||
| virtual bool hasMist() = 0; | bool hasMist(); | ||||
| virtual short getMistType() = 0; | short getMistType(); | ||||
| virtual float getMistStart() = 0; | float getMistStart(); | ||||
| virtual float getMistDistance() = 0; | float getMistDistance(); | ||||
| virtual float getMistIntensity() = 0; | float getMistIntensity(); | ||||
| virtual float getMistColorRed() = 0; | float getMistColorRed(); | ||||
| virtual float getMistColorGreen() = 0; | float getMistColorGreen(); | ||||
| virtual float getMistColorBlue() = 0; | float getMistColorBlue(); | ||||
| virtual float getBackColorRed() = 0; | float getBackColorRed(); | ||||
| virtual float getBackColorGreen() = 0; | float getBackColorGreen(); | ||||
| virtual float getBackColorBlue() = 0; | float getBackColorBlue(); | ||||
| virtual float getAmbientColorRed() = 0; | float getAmbientColorRed(); | ||||
| virtual float getAmbientColorGreen() = 0; | float getAmbientColorGreen(); | ||||
| virtual float getAmbientColorBlue() = 0; | float getAmbientColorBlue(); | ||||
| virtual void setUseMist(bool enable) = 0; | void setUseMist(bool enable); | ||||
| virtual void setMistType(short) = 0; | void setMistType(short type); | ||||
| virtual void setMistStart(float) = 0; | void setMistStart(float d); | ||||
| virtual void setMistDistance(float) = 0; | void setMistDistance(float d); | ||||
| virtual void setMistIntensity(float) = 0; | void setMistIntensity(float intensity); | ||||
| virtual void setMistColor(float, float, float) = 0; | void setMistColor(float r, float g, float b); | ||||
| virtual void setBackColor(float, float, float) = 0; | void setBackColor(float r, float g, float b); | ||||
| virtual void setAmbientColor(float,float,float) = 0; | void setAmbientColor(float r, float g, float b); | ||||
| virtual void UpdateBackGround() = 0; | void UpdateBackGround(); | ||||
| virtual void UpdateWorldSettings() = 0; | void UpdateWorldSettings(); | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("GE:KX_WorldInfo") | MEM_CXX_CLASS_ALLOC_FUNCS("GE:KX_WorldInfo") | ||||
| #endif | #endif | ||||
| }; | }; | ||||
| #endif /* __KX_WORLDINFO_H__ */ | #endif /* __KX_WORLDINFO_H__ */ | ||||