pub struct OverlayImage {
pub handle: TextureHandle,
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
One extra RGBA8 image for the sprite/text atlas pool, bound to a reserved TextureHandle the inserting tool chose. The handle space must stay clear of the compiled world’s dense texture handles (tools use a high base).
Fields§
§handle: TextureHandleThe reserved handle a sprite names to sample this image.
width: u32Image width in pixels.
height: u32Image height in pixels.
rgba: Vec<u8>Row-major RGBA8 pixels.
Trait Implementations§
Source§impl Clone for OverlayImage
impl Clone for OverlayImage
Source§fn clone(&self) -> OverlayImage
fn clone(&self) -> OverlayImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OverlayImage
impl RefUnwindSafe for OverlayImage
impl Send for OverlayImage
impl Sync for OverlayImage
impl Unpin for OverlayImage
impl UnsafeUnpin for OverlayImage
impl UnwindSafe for OverlayImage
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