mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
packer can optionally pack a source rectangle of an image
useful for packing tilesets
This commit is contained in:
1 parent
459d2ad085
commit
0f04ff0803
2 files changed
+22
-14
No files matched your search
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user