[][src]Trait nannou::mesh::TexCoords

pub trait TexCoords {
    type TexCoordScalar: BaseFloat;
    type TexCoords: Channel<Element = Point2<Self::TexCoordScalar>>;
    fn tex_coords(&self) -> &Self::TexCoords;
}

Meshes that contain a channel of texture coordinates.

Associated Types

type TexCoordScalar: BaseFloat

The scalar value used for the texture coordinates.

type TexCoords: Channel<Element = Point2<Self::TexCoordScalar>>

The channel type containing texture coordinates.

Loading content...

Required methods

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

Borrow the texture coordinate channel from the mesh.

Loading content...

Implementations on Foreign Types

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

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

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

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

Loading content...

Implementors

impl<M, C> TexCoords for WithColors<M, C> where
    M: TexCoords
[src]

impl<M, I> TexCoords for WithIndices<M, I> where
    M: TexCoords
[src]

impl<M, N> TexCoords for WithNormals<M, N> where
    M: TexCoords
[src]

impl<M, T, S> TexCoords for WithTexCoords<M, T, S> where
    T: Channel<Element = Point2<S>>,
    S: BaseFloat
[src]

type TexCoordScalar = S

type TexCoords = T

impl<S> TexCoords for Mesh<S> where
    S: BaseFloat
[src]

type TexCoordScalar = S

type TexCoords = TexCoords<S>

Loading content...