mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
Very basic inventory
This commit is contained in:
parent
cee7652e09
commit
464d8dc8be
10 changed files with 241 additions and 28 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue