Struct basalt::atlas::Atlas[][src]

pub struct Atlas { /* fields omitted */ }

Implementations

impl Atlas[src]

pub fn new(basalt: Arc<Basalt>) -> Arc<Self>[src]

pub fn image_views(
    &self
) -> Option<(Instant, Arc<HashMap<AtlasImageID, Arc<dyn ImageViewAccess + Send + Sync>>>)>
[src]

pub fn empty_image(&self) -> Arc<dyn ImageViewAccess + Send + Sync>[src]

pub fn default_sampler(&self) -> Arc<Sampler>[src]

pub fn delete_sub_image(&self, sub_img_id: SubImageID)[src]

pub fn delete_sub_cache_image(&self, sub_img_cache_id: SubImageCacheID)[src]

pub fn cache_coords(&self, cache_id: SubImageCacheID) -> Option<Coords>[src]

pub fn batch_cache_coords(
    &self,
    cache_ids: Vec<SubImageCacheID>
) -> Vec<Option<Coords>>
[src]

pub fn load_image(
    &self,
    cache_id: SubImageCacheID,
    mut image: Image
) -> Result<Coords, String>
[src]

pub fn load_image_from_bytes(
    &self,
    cache_id: SubImageCacheID,
    bytes: Vec<u8>
) -> Result<Coords, String>
[src]

pub fn load_image_from_path<P: Into<PathBuf>>(
    &self,
    path: P
) -> Result<Coords, String>
[src]

pub fn load_image_from_url<U: AsRef<str>>(
    self: &Arc<Self>,
    url: U
) -> Result<Coords, String>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.