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.
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 Vertex = WithTexCoords<M::Vertex, T::Element>
type Vertex = WithTexCoords<M::Vertex, T::Element>
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.
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.
Extend the Mesh’s Indices channel with the given indices.
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>,
Push the given vertex onto the mesh. Read more
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,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
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
pub fn vzip(self) -> V