pub trait TexCoords {
    type TexCoord;
    type TexCoords: Channel<Element = Self::TexCoord>;

    // Required method
    fn tex_coords(&self) -> &Self::TexCoords;
}
Expand description

Meshes that contain a channel of texture coordinates.

Required Associated Types§

source

type TexCoord

The point type used to represent texture coordinates.

source

type TexCoords: Channel<Element = Self::TexCoord>

The channel type containing texture coordinates.

Required Methods§

source

fn tex_coords(&self) -> &Self::TexCoords

Borrow the texture coordinate channel from the mesh.

Implementations on Foreign Types§

source§

impl<'a, M> TexCoords for &'a M
where M: TexCoords,

source§

impl<'a, M> TexCoords for &'a mut M
where M: TexCoords,

source§

impl<'a, M> TexCoords for Ref<'a, M>
where M: TexCoords,

source§

impl<'a, M> TexCoords for RefMut<'a, M>
where M: TexCoords,

Implementors§

source§

impl<M, C> TexCoords for WithColors<M, C>
where M: TexCoords,

source§

impl<M, I> TexCoords for WithIndices<M, I>
where M: TexCoords,

source§

impl<M, N> TexCoords for WithNormals<M, N>
where M: TexCoords,

source§

impl<M, T> TexCoords for WithTexCoords<M, T>
where T: Channel,

§

type TexCoord = <T as Channel>::Element

§

type TexCoords = T