diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-07-27 13:30:53 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-07-27 13:30:53 +0400 |
commit | 411123b2502388c9082886be48db93836ceacea8 (patch) | |
tree | 2d37fe8fc95b71b603a9e2fdf76580768a134313 /source/gameengine/Ketsji/KX_PythonInit.cpp | |
parent | b8142515ce762107a186fac501d73a2dbe42047a (diff) |
- added debug line drawing in gameengine (handy for debugging physics problems)
- added #ifdef for a visual studio 8 crashing problems
- added scaling and tolerances to triangle meshes
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 6f2fced3bd1..fedd45c65e8 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -78,6 +78,12 @@ static RAS_ICanvas* gp_Canvas = NULL; static KX_Scene* gp_KetsjiScene = NULL; static RAS_IRasterizer* gp_Rasterizer = NULL; +void KX_RasterizerDrawDebugLine(const MT_Vector3& from,const MT_Vector3& to,const MT_Vector3& color) +{ + if (gp_Rasterizer) + gp_Rasterizer->DrawDebugLine(from,to,color); +} + /* Macro for building the keyboard translation */ //#define KX_MACRO_addToDict(dict, name) PyDict_SetItemString(dict, #name, PyInt_FromLong(SCA_IInputDevice::KX_##name)) #define KX_MACRO_addToDict(dict, name) PyDict_SetItemString(dict, #name, PyInt_FromLong(name)) |