MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / DrawDebug

Method DrawDebug

TombEngine/Specific/Structures/BoundingVolumeHierarchy.cpp:167–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void BoundingVolumeHierarchy::DrawDebug() const
168 {
169 constexpr auto BOX_COLOR = Color(1.0f, 1.0f, 1.0f, 0.5f);
170
171 //PrintDebugMessage("BOUNDING TREE DEBUG");
172
173 if (!_nodes.empty())
174 {
175 //PrintDebugMessage("Nodes: %d", (int)_nodes.size());
176 //PrintDebugMessage("Root height: %d", _nodes[_rootId].Height);
177 }
178
179 for (const auto& node : _nodes)
180 DrawDebugBox(node.Aabb, BOX_COLOR);
181 }
182
183 std::vector<int> BoundingVolumeHierarchy::GetBoundedObjectIds(const std::function<bool(const Node& node)>& testCollRoutine) const
184 {

Callers

nothing calls this directly

Calls 2

DrawDebugBoxFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected