Enum gltf::mesh::util::ReadColors [−][src]
pub enum ReadColors<'a> { RgbU8(Iter<'a, [u8; 3]>), RgbU16(Iter<'a, [u16; 3]>), RgbF32(Iter<'a, [f32; 3]>), RgbaU8(Iter<'a, [u8; 4]>), RgbaU16(Iter<'a, [u16; 4]>), RgbaF32(Iter<'a, [f32; 4]>), }
Vertex colors.
Variants
RgbU8(Iter<'a, [u8; 3]>)
RGB vertex color of type [u8; 3]>
.
RgbU16(Iter<'a, [u16; 3]>)
RGB vertex color of type [u16; 3]>
.
RgbF32(Iter<'a, [f32; 3]>)
RGB vertex color of type [f32; 3]
.
RgbaU8(Iter<'a, [u8; 4]>)
RGBA vertex color of type [u8; 4]>
.
RgbaU16(Iter<'a, [u16; 4]>)
RGBA vertex color of type [u16; 4]>
.
RgbaF32(Iter<'a, [f32; 4]>)
RGBA vertex color of type [f32; 4]
.
Methods
impl<'a> ReadColors<'a>
[src]
impl<'a> ReadColors<'a>
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgb_u8(self) -> CastingIter<'a, RgbU8>
[src]
pub fn into_rgb_u8(self) -> CastingIter<'a, RgbU8>
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>pub fn into_rgb_u16(self) -> CastingIter<'a, RgbU16>
[src]
pub fn into_rgb_u16(self) -> CastingIter<'a, RgbU16>
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>pub fn into_rgb_f32(self) -> CastingIter<'a, RgbF32>
[src]
pub fn into_rgb_f32(self) -> CastingIter<'a, RgbF32>
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>pub fn into_rgba_u8(self) -> CastingIter<'a, RgbaU8>
[src]
pub fn into_rgba_u8(self) -> CastingIter<'a, RgbaU8>
Reinterpret colors as RGBA u8, with default alpha 255. Lossy if the underlying iterator yields u16 or f32.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgba_u16(self) -> CastingIter<'a, RgbaU16>
[src]
pub fn into_rgba_u16(self) -> CastingIter<'a, RgbaU16>
Reinterpret colors as RGBA u16, with default alpha 65535. Lossy if the underlying iterator yields f32.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgba_f32(self) -> CastingIter<'a, RgbaF32>
[src]
pub fn into_rgba_f32(self) -> CastingIter<'a, RgbaF32>
Reinterpret colors as RGBA f32, with default alpha 1.0. Lossy if the underlying iterator yields u16.
Trait Implementations
impl<'a> Clone for ReadColors<'a>
[src]
impl<'a> Clone for ReadColors<'a>
fn clone(&self) -> ReadColors<'a>
[src]
fn clone(&self) -> ReadColors<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Debug for ReadColors<'a>
[src]
impl<'a> Debug for ReadColors<'a>
Auto Trait Implementations
impl<'a> Send for ReadColors<'a>
impl<'a> Send for ReadColors<'a>
impl<'a> Sync for ReadColors<'a>
impl<'a> Sync for ReadColors<'a>