pub struct ImageOverlayData {
pub layer_id: LayerId,
pub corners: [[f64; 3]; 4],
pub width: u32,
pub height: u32,
pub data: Arc<Vec<u8>>,
pub opacity: f32,
}Expand description
Renderer-ready image overlay data produced by ImageOverlayLayer.
Contains the world-space quad vertices, texture coordinates, image data reference, and blending parameters needed by the GPU pipeline.
Fields§
§layer_id: LayerIdLayer id that produced this overlay.
corners: [[f64; 3]; 4]Four world-space corner positions [x, y, z] (TL, TR, BR, BL).
width: u32Image width in pixels.
height: u32Image height in pixels.
data: Arc<Vec<u8>>RGBA8 pixel data (length = width * height * 4).
opacity: f32Overlay opacity (0.0 = transparent, 1.0 = opaque).
Trait Implementations§
Source§impl Clone for ImageOverlayData
impl Clone for ImageOverlayData
Source§fn clone(&self) -> ImageOverlayData
fn clone(&self) -> ImageOverlayData
Returns a duplicate of the value. Read more
1.0.0 · 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 ImageOverlayData
impl RefUnwindSafe for ImageOverlayData
impl Send for ImageOverlayData
impl Sync for ImageOverlayData
impl Unpin for ImageOverlayData
impl UnsafeUnpin for ImageOverlayData
impl UnwindSafe for ImageOverlayData
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