const std::vector< Rectangle > & GetRectangles() const
Returns the vector of rectangles (including positions) resulting from the last call to Pack()...
Structure representing a rectangle to pack into the bin.
void AddRectangle(uint64 id, const math::Vector2ui &size)
Adds a rectangle of the given size to pack into the bin.
Rectangle(uint64 id_in, const math::Vector2ui &size_in)
Constructor that takes an ID and size.
math::Point2ui bottom_left
bool Pack(const math::Vector2ui &bin_size)
Tries to pack all of the rectangles into a bin of the given size.
This class implements generic 2D bin-packing using a modified version of the Skyline Bottom-Left algo...
BinPacker & operator=(const BinPacker &from)