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

Method printSceneGraph

core/base/Console.cpp:1366–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364// helper free functions
1365
1366int Console::printSceneGraph(socket_native_type fd, Node* node, int level)
1367{
1368 int total = 1;
1369 for (int i = 0; i < level; ++i)
1370 Console::Utility::sendToConsole(fd, "-", 1);
1371
1372 Console::Utility::mydprintf(fd, " %s\n", node->getDescription().c_str());
1373
1374 for (const auto& child : node->getChildren())
1375 total += printSceneGraph(fd, child, level + 1);
1376
1377 return total;
1378}
1379
1380void Console::printSceneGraphBoot(socket_native_type fd)
1381{

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected