pub struct AtlasConfig {
pub width: u32,
pub height: u32,
pub padding: u32,
}Expand description
Configuration for a TextureAtlas.
Fields§
§width: u32Total width of the backing atlas texture in texels.
height: u32Total height of the backing atlas texture in texels.
padding: u32Number of transparent texels added around each sub-image to prevent bleeding during bilinear sampling.
Trait Implementations§
Source§impl Clone for AtlasConfig
impl Clone for AtlasConfig
Source§fn clone(&self) -> AtlasConfig
fn clone(&self) -> AtlasConfig
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 moreSource§impl Debug for AtlasConfig
impl Debug for AtlasConfig
Auto Trait Implementations§
impl Freeze for AtlasConfig
impl RefUnwindSafe for AtlasConfig
impl Send for AtlasConfig
impl Sync for AtlasConfig
impl Unpin for AtlasConfig
impl UnsafeUnpin for AtlasConfig
impl UnwindSafe for AtlasConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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