Struct RipMaps
pub struct RipMaps<Samples> { pub map_data: LevelMaps<Samples>, pub level_count: Vec2<usize> }
In addition to the full resolution image,
this layer also contains smaller versions,
and each smaller version has further versions with varying aspect ratios.
Samples can currently only be FlatSamples.
Fields
map_data: LevelMaps<Samples>A flattened list containing the individual levels
level_count: Vec2<usize>The number of levels that were generated along the x-axis and y-axis.
Implementations
impl<Samples> RipMaps<Samples>
fn get_level_index(&self, level: Vec2<usize>) -> usizeFlatten the 2D level index to a one dimensional index.
fn get_by_level(&self, level: Vec2<usize>) -> Option<&Samples>Return a level by level index. Level
0has the largest resolution.fn get_by_level_mut(&mut self, level: Vec2<usize>) -> Option<&mut Samples>Return a mutable level reference by level index. Level
0has the largest resolution.
Trait Implementations
impl<Samples: Clone> Clone for RipMaps<Samples>
fn clone(&self) -> Self
impl<Samples: Debug> Debug for RipMaps<Samples>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Samples: Eq> Eq for RipMaps<Samples>
impl<Samples: PartialEq> PartialEq for RipMaps<Samples>
fn eq(&self, other: &Self) -> bool