Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Converter/BlenderWorldInfo.h
| Show All 25 Lines | |||||
| */ | */ | ||||
| /** \file BlenderWorldInfo.h | /** \file BlenderWorldInfo.h | ||||
| * \ingroup bgeconv | * \ingroup bgeconv | ||||
| */ | */ | ||||
| #ifndef __BLENDERWORLDINFO_H__ | #ifndef __BLENDERWORLDINFO_H__ | ||||
| #define __BLENDERWORLDINFO_H__ | #define __BLENDERWORLDINFO_H__ | ||||
| #include "MT_CmMatrix4x4.h" | |||||
| #include "KX_WorldInfo.h" | #include "KX_WorldInfo.h" | ||||
| #include "KX_KetsjiEngine.h" | |||||
| #include "RAS_IRasterizer.h" | |||||
moguri: I see no need to include KX_KetsjiEngine.h or RAS_IRasterizer.h. | |||||
| struct Scene; | |||||
| struct World; | |||||
| const class KX_KetsjiEngine; | |||||
| const class RAS_IRasterizer; | |||||
Not Done Inline ActionsThe KX_KetsjiEngine nor the RAS_IRasterizer forward declarations appear to be used anywhere. Also, I don't know if the use of const is correct in a forward declaration. moguri: The KX_KetsjiEngine nor the RAS_IRasterizer forward declarations appear to be used anywhere. | |||||
| class BlenderWorldInfo : public KX_WorldInfo | class BlenderWorldInfo : public KX_WorldInfo | ||||
| { | { | ||||
| bool m_hasworld; | bool m_hasworld; | ||||
| float m_backgroundcolor[3]; | |||||
| bool m_hasmist; | bool m_hasmist; | ||||
| short m_misttype; | short m_misttype; | ||||
| float m_miststart; | float m_miststart; | ||||
| float m_mistdistance; | float m_mistdistance; | ||||
| float m_mistintensity; | float m_mistintensity; | ||||
| float m_mistcolor[3]; | float m_mistcolor[3]; | ||||
| float m_backgroundcolor[3]; | |||||
| float m_ambientcolor[3]; | float m_ambientcolor[3]; | ||||
| public: | public: | ||||
| BlenderWorldInfo(struct Scene *blenderscene, struct World *blenderworld); | BlenderWorldInfo(Scene *blenderscene, World *blenderworld); | ||||
| ~BlenderWorldInfo(); | ~BlenderWorldInfo(); | ||||
| bool hasWorld(); | bool hasWorld(); | ||||
| bool hasMist(); | bool hasMist(); | ||||
| float getBackColorRed(); | |||||
| float getBackColorGreen(); | |||||
| float getBackColorBlue(); | |||||
| float getAmbientColorRed(); | |||||
| float getAmbientColorGreen(); | |||||
| float getAmbientColorBlue(); | |||||
| short getMistType(); | short getMistType(); | ||||
| float getMistStart(); | float getMistStart(); | ||||
| float getMistDistance(); | float getMistDistance(); | ||||
| float getMistIntensity(); | float getMistIntensity(); | ||||
| float getMistColorRed(); | float getMistColorRed(); | ||||
| float getMistColorGreen(); | float getMistColorGreen(); | ||||
| float getMistColorBlue(); | float getMistColorBlue(); | ||||
| float getBackColorRed(); | |||||
| float getBackColorGreen(); | |||||
| float getBackColorBlue(); | |||||
| float getAmbientColorRed(); | |||||
| float getAmbientColorGreen(); | |||||
| float getAmbientColorBlue(); | |||||
| void setBackColor(float r, float g, float b); | void setBackColor(float r, float g, float b); | ||||
| void setUseMist(bool enable); | void setUseMist(bool enable); | ||||
| void setMistType(short type); | void setMistType(short type); | ||||
| void setMistStart(float d); | void setMistStart(float d); | ||||
| void setMistDistance(float d); | void setMistDistance(float d); | ||||
| void setMistIntensity(float intensity); | void setMistIntensity(float intensity); | ||||
| void setMistColor(float r, float g, float b); | void setMistColor(float r, float g, float b); | ||||
| void setAmbientColor(float r, float g, float b); | void setAmbientColor(float r, float g, float b); | ||||
| void UpdateBackGround(); | |||||
| void UpdateWorldSettings(); | |||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("GE:BlenderWorldInfo") | MEM_CXX_CLASS_ALLOC_FUNCS("GE:BlenderWorldInfo") | ||||
| #endif | #endif | ||||
| }; | }; | ||||
| #endif /* __BLENDERWORLDINFO_H__ */ | #endif /* __BLENDERWORLDINFO_H__ */ | ||||
I see no need to include KX_KetsjiEngine.h or RAS_IRasterizer.h.