pub struct Texture {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}
Fields§
§width: u32
Width of the texture in pixels
height: u32
Height of the texture in pixels
rgba: Vec<u8>
Raw RGBA data
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more