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

Method DrawDebug

TombEngine/Specific/Structures/SpatialHash.cpp:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 void SpatialHash::DrawDebug() const
222 {
223 constexpr auto BOX_COLOR = Color(1.0f, 1.0f, 1.0f, 0.5f);
224
225 PrintDebugMessage("SPATIAL HASH DEBUG");
226
227 PrintDebugMessage("Cells: %d", _cellMap.size());
228 for (const auto& [key, cell] : _cellMap)
229 DrawDebugBox(cell.Aabb, BOX_COLOR);
230 }
231
232 Vector3i SpatialHash::GetCellKey(const Vector3& pos) const
233 {

Callers

nothing calls this directly

Calls 3

PrintDebugMessageFunction · 0.85
DrawDebugBoxFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected