Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_WorldInfo.h
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | public: | ||||
| bool hasWorld(); | bool hasWorld(); | ||||
| 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 setBackColor(float r, float g, float b); | void setBackColor(float r, float g, float b); | ||||
| float* getBackColor(); | |||||
hg1: I think Blender style is float *getBackColor();
Also I think this method can be private. | |||||
Not Done Inline ActionsHow you want to write this methode as private ? it used in ImageRender, if you want safety the best is : panzergame: How you want to write this methode as private ? it used in ImageRender, if you want safety the… | |||||
Not Done Inline ActionsSorry my fault. I write the comment to the wrong method. hg1: Sorry my fault. I write the comment to the wrong method.
| |||||
| void setAmbientColor(float r, float g, float b); | void setAmbientColor(float r, float g, float b); | ||||
| void UpdateBackGround(); | void UpdateBackGround(); | ||||
| void UpdateWorldSettings(); | void UpdateWorldSettings(); | ||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| /* attributes */ | /* attributes */ | ||||
| static PyObject *pyattr_get_mist_typeconst(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject *pyattr_get_mist_typeconst(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject *pyattr_get_mist_color(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject *pyattr_get_mist_color(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| Show All 14 Lines | |||||
I think Blender style is float *getBackColor();
Also I think this method can be private.