Struct nannou::mesh::WithTexCoords
[−]
[src]
pub struct WithTexCoords<M, T, S = TexCoordScalarDefault> { /* fields omitted */ }
A Mesh
type with an added channel containing texture coordinates.
Trait Implementations
impl<M: Copy, T: Copy, S: Copy> Copy for WithTexCoords<M, T, S>
[src]
impl<M: Clone, T: Clone, S: Clone> Clone for WithTexCoords<M, T, S>
[src]
fn clone(&self) -> WithTexCoords<M, T, S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<M: Debug, T: Debug, S: Debug> Debug for WithTexCoords<M, T, S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<M: PartialEq, T: PartialEq, S: PartialEq> PartialEq for WithTexCoords<M, T, S>
[src]
fn eq(&self, __arg_0: &WithTexCoords<M, T, S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WithTexCoords<M, T, S>) -> bool
[src]
This method tests for !=
.
impl<M, T, S> GetVertex for WithTexCoords<M, T, S> where
M: GetVertex,
T: Channel,
T::Element: Clone,
[src]
M: GetVertex,
T: Channel,
T::Element: Clone,
type Vertex = WithTexCoords<M::Vertex, T::Element>
The vertex type representing all channels of data within the mesh at a single index.
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
[src]
Create a vertex containing all channel properties for the given index.
impl<M, T, S> Points for WithTexCoords<M, T, S> where
M: Points,
[src]
M: Points,
type Scalar = M::Scalar
The scalar value used for the vertex coordinates.
type Point = M::Point
The vertex type used to represent the location of a vertex.
type Points = M::Points
The channel type containing points.
fn points(&self) -> &Self::Points
[src]
Borrow the vertex channel from the mesh.
impl<M, T, S> Indices for WithTexCoords<M, T, S> where
M: Indices,
[src]
M: Indices,
type Indices = M::Indices
The channel type containing indices.
fn indices(&self) -> &Self::Indices
[src]
Borrow the index channel from the mesh.
impl<M, T, S> Colors for WithTexCoords<M, T, S> where
M: Colors,
[src]
M: Colors,
type Color = M::Color
The color type stored within the channel.
type Colors = M::Colors
The channel type containing colors.
fn colors(&self) -> &Self::Colors
[src]
Borrow the color channel from the mesh.
impl<M, T, S> TexCoords for WithTexCoords<M, T, S> where
T: Channel<Element = Point2<S>>,
S: BaseFloat,
[src]
T: Channel<Element = Point2<S>>,
S: BaseFloat,
type TexCoordScalar = S
The scalar value used for the texture coordinates.
type TexCoords = T
The channel type containing texture coordinates.
fn tex_coords(&self) -> &Self::TexCoords
[src]
Borrow the texture coordinate channel from the mesh.
impl<M, T, S> Normals for WithTexCoords<M, T, S> where
M: Normals,
M::Point: EuclideanSpace,
[src]
M: Normals,
M::Point: EuclideanSpace,
type Normals = M::Normals
The channel type containing vertex normals.
fn normals(&self) -> &Self::Normals
[src]
Borrow the normal channel from the mesh.
impl<M, V, T, S> PushVertex<WithTexCoords<V, T>> for WithTexCoords<M, Vec<T>, S> where
M: PushVertex<V>,
[src]
M: PushVertex<V>,
fn push_vertex(&mut self, v: WithTexCoords<V, T>)
[src]
Push the given vertex onto the mesh. Read more
impl<M, T, S> PushIndex for WithTexCoords<M, T, S> where
M: PushIndex,
[src]
M: PushIndex,
fn push_index(&mut self, index: usize)
[src]
Push a new index onto the indices channel.
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = usize>,
[src]
I: IntoIterator<Item = usize>,
Extend the Mesh's Indices channel with the given indices.
impl<M, T, S> ClearIndices for WithTexCoords<M, T, S> where
M: ClearIndices,
[src]
M: ClearIndices,
fn clear_indices(&mut self)
[src]
Clear all indices from the mesh.
impl<M, T, S> ClearVertices for WithTexCoords<M, Vec<T>, S> where
M: ClearVertices,
[src]
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
Clear all vertices from the mesh.
impl<M, T, S> Default for WithTexCoords<M, T, S> where
M: Default,
T: Default,
[src]
M: Default,
T: Default,
impl<M, T, S> Deref for WithTexCoords<M, T, S>
[src]
type Target = M
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<M, T, S> DerefMut for WithTexCoords<M, T, S>
[src]
Auto Trait Implementations
impl<M, T, S> Send for WithTexCoords<M, T, S> where
M: Send,
S: Send,
T: Send,
M: Send,
S: Send,
T: Send,
impl<M, T, S> Sync for WithTexCoords<M, T, S> where
M: Sync,
S: Sync,
T: Sync,
M: Sync,
S: Sync,
T: Sync,