Struct nannou::mesh::WithTexCoords [−][src]
pub struct WithTexCoords<M, T> { /* fields omitted */ }
Expand description
A Mesh
type with an added channel containing texture coordinates.
Trait Implementations
Clear all indices from the mesh.
Clear all vertices from the mesh.
Returns the “default value” for a type. Read more
Mutably dereferences the value.
impl<'a, M, T> ExtendFromSlice<'a> for WithTexCoords<M, Vec<T, Global>> where
M: ExtendFromSlice<'a>,
T: 'a + Clone,
impl<'a, M, T> ExtendFromSlice<'a> for WithTexCoords<M, Vec<T, Global>> where
M: ExtendFromSlice<'a>,
T: 'a + Clone,
The slice type expected via the mesh. Read more
pub fn extend_from_slice(
&mut self,
slice: <WithTexCoords<M, Vec<T, Global>> as ExtendFromSlice<'a>>::Slice
)
pub fn extend_from_slice(
&mut self,
slice: <WithTexCoords<M, Vec<T, Global>> as ExtendFromSlice<'a>>::Slice
)
Extend the mesh.
The vertex type representing all channels of data within the mesh at a single index.
Create a vertex containing all channel properties for the given index.
impl<M, T> PartialEq<WithTexCoords<M, T>> for WithTexCoords<M, T> where
M: PartialEq<M>,
T: PartialEq<T>,
impl<M, T> PartialEq<WithTexCoords<M, T>> for WithTexCoords<M, T> where
M: PartialEq<M>,
T: PartialEq<T>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Push a new index onto the indices channel.
pub fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = <WithTexCoords<M, T> as PushIndex>::Index>,
pub fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = <WithTexCoords<M, T> as PushIndex>::Index>,
Extend the Mesh’s Indices channel with the given indices.
impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T, Global>> where
M: PushVertex<V>,
impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T, Global>> where
M: PushVertex<V>,
Push the given vertex onto the mesh. Read more
type TexCoords = T
type TexCoords = T
The channel type containing texture coordinates.
Borrow the texture coordinate channel from the mesh.
Auto Trait Implementations
impl<M, T> RefUnwindSafe for WithTexCoords<M, T> where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for WithTexCoords<M, T> where
M: Send,
T: Send,
impl<M, T> Sync for WithTexCoords<M, T> where
M: Sync,
T: Sync,
impl<M, T> Unpin for WithTexCoords<M, T> where
M: Unpin,
T: Unpin,
impl<M, T> UnwindSafe for WithTexCoords<M, T> where
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more