diff --git a/src/tex.rs b/src/tex.rs index cf2a72e..83a19c2 100644 --- a/src/tex.rs +++ b/src/tex.rs @@ -62,6 +62,8 @@ struct TexHeader { } pub struct Texture { + width: u32, + height: u32, rgba: Vec } @@ -101,6 +103,8 @@ impl Texture { } Some(Texture { + width: header.width as u32, + height: header.height as u32, rgba: dst }) }