From 021d36b13c58190cca86ccf288291460b1cf65ad Mon Sep 17 00:00:00 2001 From: Katajisto Date: Wed, 22 Oct 2025 22:00:27 +0300 Subject: [PATCH] start work on hiace --- modules/Hiace/module.jai | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/Hiace/module.jai diff --git a/modules/Hiace/module.jai b/modules/Hiace/module.jai new file mode 100644 index 0000000..9660db0 --- /dev/null +++ b/modules/Hiace/module.jai @@ -0,0 +1,14 @@ +Pack_Item :: struct { + id: string; + w: u32; + h: u32; + x: u32; + y: u32; +} + +// Give this a list of items, and then it will pack them and fill in their positions in the atlas. +// It will return the size of the atlas. The atlas will always be a square. It will start with a 1028x1028 +// atlas and double the atlas size with each failed try. +pack :: (items: []Pack_Item) -> u32 { + // @Incomplete: current packing is 0iq, it should probably be improved. +}