pub struct CachedStrips {
strips: Vec<Strip>,
alphas: Vec<u8>,
strip_start_indices: Vec<usize>,
}
Expand description
Cached sparse strip data.
Fields§
§strips: Vec<Strip>
The cached sparse strips.
alphas: Vec<u8>
The alpha buffer data.
strip_start_indices: Vec<usize>
Strip start indices for each geometry command.
Implementations§
Source§impl CachedStrips
impl CachedStrips
Sourcepub fn new(
strips: Vec<Strip>,
alphas: Vec<u8>,
strip_start_indices: Vec<usize>,
) -> Self
pub fn new( strips: Vec<Strip>, alphas: Vec<u8>, strip_start_indices: Vec<usize>, ) -> Self
Create a new cached strips instance.
Sourcepub fn strip_count(&self) -> usize
pub fn strip_count(&self) -> usize
Get the number of strips.
Sourcepub fn alpha_count(&self) -> usize
pub fn alpha_count(&self) -> usize
Get the number of alpha bytes.
Sourcepub fn strip_start_indices(&self) -> &[usize]
pub fn strip_start_indices(&self) -> &[usize]
Get strip start indices.
Trait Implementations§
Source§impl Debug for CachedStrips
impl Debug for CachedStrips
Source§impl Default for CachedStrips
impl Default for CachedStrips
Source§fn default() -> CachedStrips
fn default() -> CachedStrips
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CachedStrips
impl RefUnwindSafe for CachedStrips
impl Send for CachedStrips
impl Sync for CachedStrips
impl Unpin for CachedStrips
impl UnwindSafe for CachedStrips
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