[][src]Enum fna3d::TextureAddressMode

#[repr(u32)]pub enum TextureAddressMode {
    Wrap,
    Clamp,
    Mirror,
}

SamplerState component, which specifies texture coordinates addressing method

Applied for texture coordinates that are outside of range [0.0, 1.0]

Variants

Wrap

Texels outside range will form the tile at every integer junction.

Clamp

Texels outside range will be setted to color of 0.0 or 1.0 texel.

Mirror

Same as TextureAddressMode::Wrap but tiles will also flipped at every integer junction.

Trait Implementations

impl Clone for TextureAddressMode[src]

impl Copy for TextureAddressMode[src]

impl Debug for TextureAddressMode[src]

impl Eq for TextureAddressMode[src]

impl FromPrimitive for TextureAddressMode[src]

impl Hash for TextureAddressMode[src]

impl PartialEq<TextureAddressMode> for TextureAddressMode[src]

impl StructuralEq for TextureAddressMode[src]

impl StructuralPartialEq for TextureAddressMode[src]

impl ToPrimitive for TextureAddressMode[src]

impl TryFrom<i16> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i32> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i64> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i8> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u16> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u32> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u64> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u8> for TextureAddressMode[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.