[]Enum rendy_resource::WrapMode

pub enum WrapMode {
    Tile,
    Mirror,
    Clamp,
    Border,
}

Specifies how image coordinates outside the range [0, 1] are handled.

Variants

Tile

Tile the image, that is, sample the coordinate modulo 1.0, so addressing the image beyond an edge will "wrap" back from the other edge.

Mirror

Mirror the image. Like tile, but uses abs(coord) before the modulo.

Clamp

Clamp the image to the value at 0.0 or 1.0 respectively.

Border

Use border color.

Trait Implementations

impl StructuralEq for WrapMode

impl PartialEq<WrapMode> for WrapMode

impl Copy for WrapMode

impl Eq for WrapMode

impl Debug for WrapMode

impl PartialOrd<WrapMode> for WrapMode

impl Hash for WrapMode

impl Ord for WrapMode

impl Clone for WrapMode

impl StructuralPartialEq for WrapMode

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]