Enum gltf_utils::Colors [] [src]

pub enum Colors<'a> {
    RgbU8(AccessorIter<'a, [u8; 3]>),
    RgbU16(AccessorIter<'a, [u16; 3]>),
    RgbF32(AccessorIter<'a, [f32; 3]>),
    RgbaU8(AccessorIter<'a, [u8; 4]>),
    RgbaU16(AccessorIter<'a, [u16; 4]>),
    RgbaF32(AccessorIter<'a, [f32; 4]>),
}

Vertex colors.

Variants

RGB vertex color of type [u8; 3]>.

RGB vertex color of type [u16; 3]>.

RGB vertex color of type [f32; 3].

RGBA vertex color of type [u8; 4]>.

RGBA vertex color of type [u16; 4]>.

RGBA vertex color of type [f32; 4].

Methods

impl<'a> Colors<'a>
[src]

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGB u8, discarding alpha, if present. Lossy if the underlying iterator yields u16, f32 or any RGBA.

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGB u16, discarding alpha, if present. Lossy if the underlying iterator yields f32 or any RGBA.

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGB f32, discarding alpha, if present. Lossy if the underlying iterator yields u16 or any RGBA.

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGBA u8, with default alpha 255. Lossy if the underlying iterator yields u16 or f32.

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGBA u16, with default alpha 65535. Lossy if the underlying iterator yields f32.

Important traits for CastingIter<'a, A>
[src]

Reinterpret colors as RGBA f32, with default alpha 1.0. Lossy if the underlying iterator yields u16.

Trait Implementations

impl<'a> Clone for Colors<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Colors<'a>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Colors<'a>

impl<'a> Sync for Colors<'a>