From 646f9d9774d72e9459f50726b200a586d7e07614 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Dec 2022 17:27:44 +0100 Subject: src/chunk: stick bboxes into the pointer on 64-bit --- compat/LooseQuadtree-impl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compat') diff --git a/compat/LooseQuadtree-impl.h b/compat/LooseQuadtree-impl.h index ff25f682..08591072 100644 --- a/compat/LooseQuadtree-impl.h +++ b/compat/LooseQuadtree-impl.h @@ -1265,6 +1265,16 @@ void LooseQuadtree::Query::Next() { } +template +struct TrivialBBExtractor { + static void ExtractBoundingBox(const BoundingBox *object, BoundingBox *bbox) + { + bbox->left = object->left; + bbox->top = object->top; + bbox->width = object->width; + bbox->height = object->height; + } +}; } // namespace loose_quadtree -- cgit v1.2.3