MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / debugDrawLines

Function debugDrawLines

CryAnimation/DebugUtils.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void debugDrawLines (const Vec3& a, const Vec3& b, const Vec3& d, int nSubdiv, const float* pColor = NULL)
60{
61 IRenderer* pRenderer = g_GetIRenderer();
62 pRenderer->Draw3dPrim(a,b,DPRIM_LINE,pColor);
63 for (int i = 1; i < nSubdiv; ++i)
64 pRenderer->Draw3dPrim(a + (d-a)*float(double(i)/nSubdiv), b + (d-a)*float(double(i)/nSubdiv), DPRIM_LINE, pColor);
65}
66
67void debugDrawOctahedron (const Matrix44& matModel, float fSize, const float pColor[4])
68{

Callers 1

debugDrawBBoxFunction · 0.85

Calls 2

g_GetIRendererFunction · 0.85
Draw3dPrimMethod · 0.45

Tested by

no test coverage detected