1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-23 21:17:45 +00:00

Expose texture width and height

This commit is contained in:
Joshua Goins 2022-08-11 15:47:02 -04:00
parent 2c1b7cbfb3
commit 06226cfad1

View file

@ -62,6 +62,8 @@ struct TexHeader {
}
pub struct Texture {
width: u32,
height: u32,
rgba: Vec<u8>
}
@ -101,6 +103,8 @@ impl Texture {
}
Some(Texture {
width: header.width as u32,
height: header.height as u32,
rgba: dst
})
}