MCPcopy Create free account
hub / github.com/axmolengine/axmol / DrawFatSegment

Function DrawFatSegment

core/physics/PhysicsWorld.cpp:246–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static void DrawFatSegment(cpVect a,
247 cpVect b,
248 cpFloat r,
249 cpSpaceDebugColor outline,
250 cpSpaceDebugColor /*fill*/,
251 cpDataPointer data)
252{
253 const Color4F outlineColor(outline.r, outline.g, outline.b, outline.a);
254 DrawNode* drawNode = static_cast<DrawNode*>(data);
255 drawNode->drawSegment(PhysicsHelper::cpv2vec2(a), PhysicsHelper::cpv2vec2(b),
256 PhysicsHelper::cpfloat2float(r == 0 ? _debugDrawThickness : r), outlineColor);
257}
258
259static void DrawSegment(cpVect a, cpVect b, cpSpaceDebugColor color, cpDataPointer data)
260{

Callers 1

DrawSegmentFunction · 0.85

Calls 1

drawSegmentMethod · 0.80

Tested by

no test coverage detected