MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Rect

Class Rect

source/rect_packing.h:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace Packing {
6struct Rect {
7 i32 x { 0 };
8 i32 y { 0 };
9
10 i32 w { 0 };
11 i32 h { 0 };
12
13 bool wasPacked { false };
14
15 i32 ordering { -1 };
16};
17
18void RowPackRects(ResizableArray<Rect>& rects, i32 width, i32 height);
19void SkylinePackRects(Arena* pScratchMem, ResizableArray<Rect>& rects, i32 width, i32 height);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected