pub struct MultiPageAtlas {
pub pages: Vec<SdfAtlas>,
pub page_size: u32,
}Expand description
An atlas that spans multiple pages when a single texture is not large enough.
Each page is an independent SdfAtlas of the same page_size. Tiles are
distributed greedily: when the current page is full a new one is opened.
Fields§
§pages: Vec<SdfAtlas>Individual atlas pages (same dimensions, different tiles).
page_size: u32Pixel size of each page (width == height).
Implementations§
Source§impl MultiPageAtlas
impl MultiPageAtlas
Auto Trait Implementations§
impl Freeze for MultiPageAtlas
impl RefUnwindSafe for MultiPageAtlas
impl Send for MultiPageAtlas
impl Sync for MultiPageAtlas
impl Unpin for MultiPageAtlas
impl UnsafeUnpin for MultiPageAtlas
impl UnwindSafe for MultiPageAtlas
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more