Trait nannou::mesh::TexCoords
[−]
[src]
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.
Required Methods
fn tex_coords(&self) -> &Self::TexCoords
Borrow the texture coordinate channel from the mesh.
Implementations on Foreign Types
impl<'a, M> TexCoords for &'a M where
M: TexCoords,
[src]
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
type TexCoords = M::TexCoords
fn tex_coords(&self) -> &Self::TexCoords
[src]
impl<'a, M> TexCoords for &'a mut M where
M: TexCoords,
[src]
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
type TexCoords = M::TexCoords
fn tex_coords(&self) -> &Self::TexCoords
[src]
impl<'a, M> TexCoords for Ref<'a, M> where
M: TexCoords,
[src]
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
type TexCoords = M::TexCoords
fn tex_coords(&self) -> &Self::TexCoords
[src]
impl<'a, M> TexCoords for RefMut<'a, M> where
M: TexCoords,
[src]
M: TexCoords,
type TexCoordScalar = M::TexCoordScalar
type TexCoords = M::TexCoords
fn tex_coords(&self) -> &Self::TexCoords
[src]
Implementors
impl<S> TexCoords for Mesh<S> where
S: BaseFloat, type TexCoordScalar = S; type TexCoords = TexCoords<S>;impl<M, T, S> TexCoords for WithTexCoords<M, T, S> where
T: Channel<Element = Point2<S>>,
S: BaseFloat, type TexCoordScalar = S; type TexCoords = T;impl<M, I> TexCoords for WithIndices<M, I> where
M: TexCoords, type TexCoordScalar = M::TexCoordScalar; type TexCoords = M::TexCoords;impl<M, C> TexCoords for WithColors<M, C> where
M: TexCoords, type TexCoordScalar = M::TexCoordScalar; type TexCoords = M::TexCoords;impl<M, N> TexCoords for WithNormals<M, N> where
M: TexCoords, type TexCoordScalar = M::TexCoordScalar; type TexCoords = M::TexCoords;