IPhysRenderer

C++
struct IPhysRenderer {
};
File

physinterface.h

Description

this is a callback interface for debug rendering, physics gets a pointer to an implementation

IPhysRenderer::~IPhysRenderer Destructor
C++
virtual ~IPhysRenderer();
IPhysRenderer::DrawGeometry Method
C++
virtual void DrawGeometry(IGeometry * pGeom, struct geom_world_data * pgwd, int idxColor = 0, int bSlowFadein = 0, const Vec3 & sweepDir = Vec3(0)) = 0;
Description

draws helpers for the specified geometry (idxColor is in 0..7 range)

IPhysRenderer::DrawLine Method
C++
virtual void DrawLine(const Vec3& pt0, const Vec3& pt1, int idxColor = 0, int bSlowFadein = 0) = 0;
Description

draws a line for wireframe helpers

IPhysRenderer::DrawText Method
C++
virtual void DrawText(const Vec3 & pt, const char * txt, int idxColor, float saturation = 0) = 0;
Description

draws a text line (stauration is 0..1 and is currently used to represent stress level on a breakable joint)

IPhysRenderer::GetForeignName Method
C++
virtual const char * GetForeignName(void * pForeignData, int iForeignData, int iForeignFlags) = 0;
Description

gets a descriptive name of the phys entity's owner (used solely for debug output)

IPhysRenderer::SetOffset Method
C++
virtual Vec3 SetOffset(const Vec3 & offs = Vec3(ZERO)) = 0;
Description

sets an offset that is to be added to all subsequent draw requests