Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Converter/BlenderWorldInfo.h
| Show All 34 Lines | |||||
| #include "KX_WorldInfo.h" | #include "KX_WorldInfo.h" | ||||
| class BlenderWorldInfo : public KX_WorldInfo | class BlenderWorldInfo : public KX_WorldInfo | ||||
| { | { | ||||
| bool m_hasworld; | bool m_hasworld; | ||||
| float m_backgroundcolor[3]; | float m_backgroundcolor[3]; | ||||
| bool m_hasmist; | bool m_hasmist; | ||||
| short m_misttype; | |||||
| float m_miststart; | float m_miststart; | ||||
| float m_mistdistance; | float m_mistdistance; | ||||
| float m_mistintensity; | |||||
| float m_mistcolor[3]; | float m_mistcolor[3]; | ||||
| float m_ambientcolor[3]; | float m_ambientcolor[3]; | ||||
| public: | public: | ||||
| BlenderWorldInfo(struct Scene *blenderscene, struct World *blenderworld); | BlenderWorldInfo(struct Scene *blenderscene, struct World *blenderworld); | ||||
| ~BlenderWorldInfo(); | ~BlenderWorldInfo(); | ||||
| bool hasWorld(); | bool hasWorld(); | ||||
| bool hasMist(); | bool hasMist(); | ||||
| float getBackColorRed(); | float getBackColorRed(); | ||||
| float getBackColorGreen(); | float getBackColorGreen(); | ||||
| float getBackColorBlue(); | float getBackColorBlue(); | ||||
| float getAmbientColorRed(); | float getAmbientColorRed(); | ||||
| float getAmbientColorGreen(); | float getAmbientColorGreen(); | ||||
| float getAmbientColorBlue(); | float getAmbientColorBlue(); | ||||
| short getMistType(); | |||||
| float getMistStart(); | float getMistStart(); | ||||
| float getMistDistance(); | float getMistDistance(); | ||||
| float getMistIntensity(); | |||||
| float getMistColorRed(); | float getMistColorRed(); | ||||
| float getMistColorGreen(); | float getMistColorGreen(); | ||||
| float getMistColorBlue(); | float getMistColorBlue(); | ||||
| 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 setMistStart(float d); | void setMistStart(float d); | ||||
| void setMistDistance(float d); | void setMistDistance(float d); | ||||
| 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); | ||||
| #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__ */ | ||||