implement naive packer
This commit is contained in:
parent
8698cf8160
commit
e31683d2fe
8 changed files with 114 additions and 78 deletions
|
@ -5,13 +5,11 @@
|
|||
namespace freling {
|
||||
|
||||
struct BoundingBox {
|
||||
uint32_t left;
|
||||
uint32_t top;
|
||||
uint32_t right;
|
||||
uint32_t bottom;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
|
||||
int width() const;
|
||||
int height() const;
|
||||
int area() const;
|
||||
|
||||
bool operator==(const BoundingBox& b) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue