Struct nannou::mesh::WithTexCoords
source · pub struct WithTexCoords<M, T> { /* private fields */ }
Expand description
A Mesh
type with an added channel containing texture coordinates.
Trait Implementations§
source§impl<M, T> ClearIndices for WithTexCoords<M, T>where
M: ClearIndices,
impl<M, T> ClearIndices for WithTexCoords<M, T>where
M: ClearIndices,
source§fn clear_indices(&mut self)
fn clear_indices(&mut self)
Clear all indices from the mesh.
source§impl<M, T> ClearVertices for WithTexCoords<M, Vec<T>>where
M: ClearVertices,
impl<M, T> ClearVertices for WithTexCoords<M, Vec<T>>where
M: ClearVertices,
source§fn clear_vertices(&mut self)
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
source§impl<M, T> Clone for WithTexCoords<M, T>
impl<M, T> Clone for WithTexCoords<M, T>
source§fn clone(&self) -> WithTexCoords<M, T>
fn clone(&self) -> WithTexCoords<M, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M, T> Colors for WithTexCoords<M, T>where
M: Colors,
impl<M, T> Colors for WithTexCoords<M, T>where
M: Colors,
source§impl<M, T> Debug for WithTexCoords<M, T>
impl<M, T> Debug for WithTexCoords<M, T>
source§impl<M, T> Default for WithTexCoords<M, T>
impl<M, T> Default for WithTexCoords<M, T>
source§fn default() -> WithTexCoords<M, T>
fn default() -> WithTexCoords<M, T>
Returns the “default value” for a type. Read more
source§impl<M, T> Deref for WithTexCoords<M, T>
impl<M, T> Deref for WithTexCoords<M, T>
source§impl<M, T> DerefMut for WithTexCoords<M, T>
impl<M, T> DerefMut for WithTexCoords<M, T>
source§impl<'a, M, T> ExtendFromSlice<'a> for WithTexCoords<M, Vec<T>>where
M: ExtendFromSlice<'a>,
T: 'a + Clone,
impl<'a, M, T> ExtendFromSlice<'a> for WithTexCoords<M, Vec<T>>where
M: ExtendFromSlice<'a>,
T: 'a + Clone,
§type Slice = (&'a [T], <M as ExtendFromSlice<'a>>::Slice)
type Slice = (&'a [T], <M as ExtendFromSlice<'a>>::Slice)
The slice type expected via the mesh. Read more
source§fn extend_from_slice(
&mut self,
slice: <WithTexCoords<M, Vec<T>> as ExtendFromSlice<'a>>::Slice
)
fn extend_from_slice( &mut self, slice: <WithTexCoords<M, Vec<T>> as ExtendFromSlice<'a>>::Slice )
Extend the mesh.
source§impl<M, T, I> GetVertex<I> for WithTexCoords<M, T>
impl<M, T, I> GetVertex<I> for WithTexCoords<M, T>
§type Vertex = WithTexCoords<<M as GetVertex<I>>::Vertex, <T as Channel>::Element>
type Vertex = WithTexCoords<<M as GetVertex<I>>::Vertex, <T as Channel>::Element>
The vertex type representing all channels of data within the mesh at a single index.
source§fn get_vertex(
&self,
index: I
) -> Option<<WithTexCoords<M, T> as GetVertex<I>>::Vertex>
fn get_vertex( &self, index: I ) -> Option<<WithTexCoords<M, T> as GetVertex<I>>::Vertex>
Create a vertex containing all channel properties for the given index.
source§impl<M, T> Indices for WithTexCoords<M, T>where
M: Indices,
impl<M, T> Indices for WithTexCoords<M, T>where
M: Indices,
source§impl<M, T> Normals for WithTexCoords<M, T>where
M: Normals,
impl<M, T> Normals for WithTexCoords<M, T>where
M: Normals,
source§impl<M, T> PartialEq for WithTexCoords<M, T>
impl<M, T> PartialEq for WithTexCoords<M, T>
source§fn eq(&self, other: &WithTexCoords<M, T>) -> bool
fn eq(&self, other: &WithTexCoords<M, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, T> Points for WithTexCoords<M, T>where
M: Points,
impl<M, T> Points for WithTexCoords<M, T>where
M: Points,
source§impl<M, T> PushIndex for WithTexCoords<M, T>where
M: PushIndex,
impl<M, T> PushIndex for WithTexCoords<M, T>where
M: PushIndex,
source§fn push_index(&mut self, index: <WithTexCoords<M, T> as PushIndex>::Index)
fn push_index(&mut self, index: <WithTexCoords<M, T> as PushIndex>::Index)
Push a new index onto the indices channel.
source§fn extend_indices<I>(&mut self, indices: I)
fn extend_indices<I>(&mut self, indices: I)
Extend the Mesh’s Indices channel with the given indices.
source§impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>>where
M: PushVertex<V>,
impl<M, V, T> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: WithTexCoords<V, T>)
fn push_vertex(&mut self, v: WithTexCoords<V, T>)
Push the given vertex onto the mesh. Read more
source§impl<M, T> TexCoords for WithTexCoords<M, T>where
T: Channel,
impl<M, T> TexCoords for WithTexCoords<M, T>where
T: Channel,
impl<M, T> Copy for WithTexCoords<M, T>
impl<M, T> StructuralPartialEq for WithTexCoords<M, T>
Auto Trait Implementations§
impl<M, T> RefUnwindSafe for WithTexCoords<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for WithTexCoords<M, T>
impl<M, T> Sync for WithTexCoords<M, T>
impl<M, T> Unpin for WithTexCoords<M, T>
impl<M, T> UnwindSafe for WithTexCoords<M, T>where
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
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