3#include <Optibits/Platform.hpp>
4#include <Optibits/Utility.hpp>
15 const int mWidth, mHeight;
16 std::vector<Rect> mFreeRects;
23 int width()
const {
return mWidth; }
24 int height()
const {
return mHeight; }
26 std::shared_ptr<const Rect> alloc(
int width,
int height);
28 void addFreeRect(
const Rect& rect);
32 const Rect* bestFreeRect(
int width,
int height)
const;
34 void removeFreeRect(
int index,
int* otherIndex =
nullptr);
36 void mergeNeighbors(
int index);
Definition BinPacker.hpp:14
Definition Utility.hpp:24
Definition Utility.hpp:39