Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_Scene.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| #include "CTR_HashedPtr.h" | #include "CTR_HashedPtr.h" | ||||
| #include "SG_IObject.h" | #include "SG_IObject.h" | ||||
| #include "SCA_IScene.h" | #include "SCA_IScene.h" | ||||
| #include "MT_Transform.h" | #include "MT_Transform.h" | ||||
| #include "RAS_FramingManager.h" | #include "RAS_FramingManager.h" | ||||
| #include "RAS_Rect.h" | #include "RAS_Rect.h" | ||||
| #include "Value.h" | |||||
| #include "PyObjectPlus.h" | |||||
| #include "RAS_2DFilterManager.h" | #include "RAS_2DFilterManager.h" | ||||
| /** | /** | ||||
| * \section Forward declarations | * \section Forward declarations | ||||
| */ | */ | ||||
| struct SM_MaterialProps; | struct SM_MaterialProps; | ||||
| struct SM_ShapeProps; | struct SM_ShapeProps; | ||||
| struct Scene; | struct Scene; | ||||
| Show All 33 Lines | |||||
| /* for ID freeing */ | /* for ID freeing */ | ||||
| #define IS_TAGGED(_id) ((_id) && (((ID *)_id)->flag & LIB_DOIT)) | #define IS_TAGGED(_id) ((_id) && (((ID *)_id)->flag & LIB_DOIT)) | ||||
| /** | /** | ||||
| * The KX_Scene holds all data for an independent scene. It relates | * The KX_Scene holds all data for an independent scene. It relates | ||||
| * KX_Objects to the specific objects in the modules. | * KX_Objects to the specific objects in the modules. | ||||
| * */ | * */ | ||||
| class KX_Scene : public PyObjectPlus, public SCA_IScene | class KX_Scene : public CValue, public SCA_IScene | ||||
| { | { | ||||
| Py_Header | Py_Header | ||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| PyObject* m_attr_dict; | PyObject* m_attr_dict; | ||||
| PyObject* m_draw_call_pre; | PyObject* m_draw_call_pre; | ||||
| PyObject* m_draw_call_post; | PyObject* m_draw_call_post; | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | public: | ||||
| /** | /** | ||||
| * Replicate the logic bricks associated to this object. | * Replicate the logic bricks associated to this object. | ||||
| */ | */ | ||||
| void ReplicateLogic(class KX_GameObject* newobj); | void ReplicateLogic(class KX_GameObject* newobj); | ||||
| static SG_Callbacks m_callbacks; | static SG_Callbacks m_callbacks; | ||||
| const STR_String& GetName(); | |||||
| // Suspend the entire scene. | // Suspend the entire scene. | ||||
| void Suspend(); | void Suspend(); | ||||
| // Resume a suspended scene. | // Resume a suspended scene. | ||||
| void Resume(); | void Resume(); | ||||
| // Update the mesh for objects based on level of detail settings | // Update the mesh for objects based on level of detail settings | ||||
| void UpdateObjectLods(void); | void UpdateObjectLods(void); | ||||
| Show All 37 Lines | public: | ||||
| /** | /** | ||||
| * 2D Filters | * 2D Filters | ||||
| */ | */ | ||||
| void Update2DFilter(std::vector<STR_String>& propNames, void* gameObj, RAS_2DFilterManager::RAS_2DFILTER_MODE filtermode, int pass, STR_String& text); | void Update2DFilter(std::vector<STR_String>& propNames, void* gameObj, RAS_2DFilterManager::RAS_2DFILTER_MODE filtermode, int pass, STR_String& text); | ||||
| void Render2DFilters(RAS_ICanvas* canvas); | void Render2DFilters(RAS_ICanvas* canvas); | ||||
| KX_ObstacleSimulation* GetObstacleSimulation() { return m_obstacleSimulation; } | KX_ObstacleSimulation* GetObstacleSimulation() { return m_obstacleSimulation; } | ||||
| /** Inherited from CValue -- does nothing! */ | |||||
| CValue* Calc(VALUE_OPERATOR op, CValue *val); | |||||
| /** Inherited from CValue -- does nothing! */ | |||||
| CValue* CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val); | |||||
| /** Inherited from CValue -- does nothing! */ | |||||
| const STR_String& GetText(); | |||||
| /** Inherited from CValue -- does nothing! */ | |||||
| double GetNumber(); | |||||
| /** Inherited from CValue -- returns the name of this object. */ | |||||
| STR_String& GetName(); | |||||
| /** Inherited from CValue -- set the name of this object. */ | |||||
| void SetName(const char *name); | |||||
| /** Inherited from CValue -- does nothing! */ | |||||
| virtual CValue* GetReplica(); | |||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| /* --------------------------------------------------------------------- */ | /* --------------------------------------------------------------------- */ | ||||
| /* Python interface ---------------------------------------------------- */ | /* Python interface ---------------------------------------------------- */ | ||||
| /* --------------------------------------------------------------------- */ | /* --------------------------------------------------------------------- */ | ||||
| KX_PYMETHOD_DOC(KX_Scene, addObject); | KX_PYMETHOD_DOC(KX_Scene, addObject); | ||||
| KX_PYMETHOD_DOC(KX_Scene, end); | KX_PYMETHOD_DOC(KX_Scene, end); | ||||
| KX_PYMETHOD_DOC(KX_Scene, restart); | KX_PYMETHOD_DOC(KX_Scene, restart); | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||