From 06226cfad1760878cbb58d25b66b1b1d5c149030 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 11 Aug 2022 15:47:02 -0400 Subject: [PATCH] Expose texture width and height --- src/tex.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 }) }