packer can optionally pack a source rectangle of an image

useful for packing tilesets
This commit is contained in:
Noel Berry
2021-04-11 20:57:09 -07:00
parent 459d2ad085
commit 0f04ff0803
2 changed files with 22 additions and 14 deletions

View File

@ -82,6 +82,9 @@ namespace Blah
// add a new entry
void add(u64 id, const Image& bitmap);
// add a new entry
void add(u64 id, const Image& bitmap, const RectI& source);
// add a new entry
void add(u64 id, const FilePath& path);
@ -120,6 +123,6 @@ namespace Blah
Vector<Entry> m_entries;
// adds a new entry
void add_entry(u64 id, int w, int h, const Color* pixels);
void add_entry(u64 id, int w, int h, const Color* pixels, const RectI& source);
};
}