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

Method DrawString

tests/cpp-tests/Source/Box2DTestBed/test.cpp:465–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void Test::DrawString(int x, int y, const char* fmt, ...)
466{
467#if defined(AX_PLATFORM_PC)
468 va_list args;
469 va_start(args, fmt);
470 auto str = StringUtils::vformat(fmt, args);
471 va_end(args);
472 debugString.append(str);
473 debugString.append("\n");
474 labelDebugDraw->setString(debugString);
475 // labelDebugDraw->setPosition(x, y);
476#endif
477}
478
479void Test::DrawString(const b2Vec2& pw, const char* fmt, ...)
480{

Callers

nothing calls this directly

Calls 3

vformatFunction · 0.50
appendMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected