My Project
IParaDebugDraw.h
1 #pragma once
2 #include "PEtypes.h"
3 namespace ParaEngine
4 {
5 
11  {
12  public:
13  enum DebugDrawModes
14  {
15  DDM_NoDebug=0,
16  DDM_DrawWireframe = 1,
17  DDM_DrawAabb=2,
18  DDM_DrawFeaturesText=4,
19  DDM_DrawContactPoints=8,
20  DDM_NoDeactivation=16,
21  DDM_NoHelpText = 32,
22  DDM_DrawText=64,
23  DDM_ProfileTimings = 128,
24  DDM_EnableSatComparison = 256,
25  DDM_DisableBulletLCP = 512,
26  DDM_EnableCCD = 1024,
27  DDM_DrawConstraints = (1 << 11),
28  DDM_DrawConstraintLimits = (1 << 12),
29  DDM_FastWireframe = (1<<13),
30  DDM_MAX_DEBUG_DRAW_MODE
31  };
32 
34  virtual void DrawLine(const PARAVECTOR3& from,const PARAVECTOR3& to,const PARAVECTOR3& color) = 0;
35 
45  virtual void DrawPredefinedLines(const PARAVECTOR3* lines, int nLineCount, const PARAVECTOR3& color) = 0;
46 
48  virtual void DrawContactPoint( const PARAVECTOR3& PointOnB,const PARAVECTOR3& normalOnB,float distance,int lifeTime,const PARAVECTOR3& color ) = 0;
49 
51  virtual void ReportErrorWarning( const char* warningString ) = 0;
52 
54  virtual void Draw3dText( const PARAVECTOR3& location,const char* textString ) = 0;
55 
57  virtual void SetRenderOffset(const PARAVECTOR3& vOffset) = 0;
58 
60  virtual PARAVECTOR3 GetRenderOffset() = 0;
61 
63  virtual void SetDebugDrawMode(int debugMode) = 0;
64 
66  virtual int GetDebugDrawMode() = 0;
67 
69  virtual void SetDefaultColor(const PARAVECTOR3& color) = 0;
70 
72  virtual PARAVECTOR3 GetDefaultColor() = 0;
73  };
74 }
virtual PARAVECTOR3 GetRenderOffset()=0
get current render offset.
virtual void DrawPredefinedLines(const PARAVECTOR3 *lines, int nLineCount, const PARAVECTOR3 &color)=0
draw multiple lines with a given color using the predefined index order.
virtual void SetRenderOffset(const PARAVECTOR3 &vOffset)=0
set current render offset.
virtual void ReportErrorWarning(const char *warningString)=0
draw a contact point with a given color.
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual int GetDebugDrawMode()=0
bitwise of PhysicsDebugDrawModes
virtual void SetDebugDrawMode(int debugMode)=0
bitwise of DebugDrawModes
IParaDebugDraw draw interface draws line based primitives for debugging purposes. ...
Definition: IParaDebugDraw.h:10
virtual void SetDefaultColor(const PARAVECTOR3 &color)=0
get the current draw color.
virtual void DrawLine(const PARAVECTOR3 &from, const PARAVECTOR3 &to, const PARAVECTOR3 &color)=0
draw a line with a given color.
Definition: PEtypes.h:298
virtual void Draw3dText(const PARAVECTOR3 &location, const char *textString)=0
draw a text with a given color.
virtual PARAVECTOR3 GetDefaultColor()=0
set the current draw color.
virtual void DrawContactPoint(const PARAVECTOR3 &PointOnB, const PARAVECTOR3 &normalOnB, float distance, int lifeTime, const PARAVECTOR3 &color)=0
draw a contact point with a given color.