MCPcopy
hub / github.com/EngoEngine/engo / Destroy

Method Destroy

quadtree.go:116–119  ·  view source on GitHub ↗

Destroy frees the nodes if the Quadtree uses the node pool

()

Source from the content-addressed store, hash-verified

114
115// Destroy frees the nodes if the Quadtree uses the node pool
116func (qt *Quadtree) Destroy() {
117 qt.freeQuadtreeNode(qt.root)
118 qt.root = nil
119}
120
121func (qt *Quadtree) newNode(bounds AABB, level int) (node *quadtreeNode) {
122 if qt.usePool {

Callers 1

DestroyWindowFunction · 0.45

Calls 1

freeQuadtreeNodeMethod · 0.95

Tested by

no test coverage detected