mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-24 13:37:44 +00:00
Expose texture width and height
This commit is contained in:
parent
2c1b7cbfb3
commit
06226cfad1
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,8 @@ struct TexHeader {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Texture {
|
pub struct Texture {
|
||||||
|
width: u32,
|
||||||
|
height: u32,
|
||||||
rgba: Vec<u8>
|
rgba: Vec<u8>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,6 +103,8 @@ impl Texture {
|
||||||
}
|
}
|
||||||
|
|
||||||
Some(Texture {
|
Some(Texture {
|
||||||
|
width: header.width as u32,
|
||||||
|
height: header.height as u32,
|
||||||
rgba: dst
|
rgba: dst
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue