Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2005-07-27 13:30:53 +0400
committerErwin Coumans <blender@erwincoumans.com>2005-07-27 13:30:53 +0400
commit411123b2502388c9082886be48db93836ceacea8 (patch)
tree2d37fe8fc95b71b603a9e2fdf76580768a134313 /source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
parentb8142515ce762107a186fac501d73a2dbe42047a (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/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h')
-rw-r--r--source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
index 2571cee1333..ad6bdf8c1d1 100644
--- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
+++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h
@@ -44,6 +44,13 @@ using namespace std;
#include "RAS_MaterialBucket.h"
#include "RAS_ICanvas.h"
+struct OglDebugLine
+{
+ MT_Vector3 m_from;
+ MT_Vector3 m_to;
+ MT_Vector3 m_color;
+};
+
/**
* 3D rendering device context.
*/
@@ -226,6 +233,17 @@ public:
);
virtual void SetPolygonOffset(float mult, float add);
+ virtual void DrawDebugLine(const MT_Vector3& from,const MT_Vector3& to,const MT_Vector3& color)
+ {
+ OglDebugLine line;
+ line.m_from = from;
+ line.m_to = to;
+ line.m_color = color;
+ m_debugLines.push_back(line);
+ }
+
+ std::vector <OglDebugLine> m_debugLines;
+
};
#endif //__RAS_OPENGLRASTERIZER