Very basic inventory

This commit is contained in:
crumblingstatue 2023-04-15 22:47:53 +02:00
parent cee7652e09
commit 464d8dc8be
10 changed files with 241 additions and 28 deletions

View file

@ -20,7 +20,7 @@ impl AtlasBundle {
max_height: 4096,
allow_rotation: false,
border_padding: 0,
texture_padding: 1,
texture_padding: 0,
texture_extrusion: 0,
trim: true,
texture_outlines: false,
@ -34,6 +34,11 @@ impl AtlasBundle {
});
let mut rects = HashMap::new();
let mut tex = Texture::new().unwrap();
log::info!(
"Texture atlas size is: {}x{}",
packer.width(),
packer.height()
);
if !tex.create(packer.width(), packer.height()) {
panic!("Failed to create texture");
}