pub struct ShapeImage {
pub name: String,
pub linear: bool,
pub wrap: bool,
}Expand description
The texture of a shape’s image= key, already split like projectM’s ExtractTextureSettings
(fw_ / fc_ / pw_ / pc_ prefixes pick filter and wrapping; no prefix = linear + repeat).
Fields§
§name: StringLower-case texture name without prefix and extension (the key of set_user_texture).
linear: boolBilinear (true) or nearest (false) filtering.
wrap: boolRepeat (true) or clamp-to-edge (false) addressing.
Trait Implementations§
Source§impl Clone for ShapeImage
impl Clone for ShapeImage
Source§impl Debug for ShapeImage
impl Debug for ShapeImage
impl Eq for ShapeImage
Source§impl PartialEq for ShapeImage
impl PartialEq for ShapeImage
impl StructuralPartialEq for ShapeImage
Auto Trait Implementations§
impl Forget for ShapeImage
impl Freeze for ShapeImage
impl Move for ShapeImage
impl RefUnwindSafe for ShapeImage
impl Send for ShapeImagewhere
RawVecInner: Send,
impl Sync for ShapeImagewhere
RawVecInner: Sync,
impl Unpin for ShapeImage
impl UnsafeUnpin for ShapeImage
impl UnwindSafe for ShapeImagewhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.