Skip to main content

ImageSource

Trait ImageSource 

Source
pub trait ImageSource {
    // Required method
    fn image_data(&self, id: ImageId) -> Option<ImageData<'_>>;
}
Expand description

Supplies image pixels for GPU atlas re-uploads when the atlas recycles itself.

Images are held in felis_client_core::ImageShadow. Returns None if pixels have not fully arrived or were deleted, in which case placements paint nothing.

Required Methods§

Source

fn image_data(&self, id: ImageId) -> Option<ImageData<'_>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§