[−][src]Struct nannou::draw::primitive::mesh::Vertexless
The mesh type prior to being initialised with vertices or indices.
Implementations
impl Vertexless
[src]
pub fn points_textured<S, I, P, T>(
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
points: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = (P, T)>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
[src]
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
points: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = (P, T)>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
Describe the mesh with a sequence of textured points.
Each of the vertices must be represented as a tuple containing the point and tex
coordinates in that order, e.g. (point, tex_coords)
. point
may be of any type that
implements Into<Point3>
and tex_coords
may be of any type that implements
Into<Point2>
.
pub fn points_colored<S, I, P, C>(
self,
inner_mesh: &mut Mesh<S>,
points: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
[src]
self,
inner_mesh: &mut Mesh<S>,
points: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = (P, C)>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
Describe the mesh with a sequence of colored points.
Each of the points must be represented as a tuple containing the point and the color in
that order, e.g. (point, color)
. point
may be of any type that implements
Into<Point3>
and color
may be of any type that implements IntoLinSrgba
.
pub fn points<S, I>(self, inner_mesh: &mut Mesh<S>, points: I) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator,
I::Item: Into<Point<S>>,
[src]
S: BaseFloat,
I: IntoIterator,
I::Item: Into<Point<S>>,
Describe the mesh with a sequence of points.
The given iterator may yield any type that can be converted directly into Point3
s.
This method assumes that the entire mesh should be coloured with a single colour. If a
colour is not specified via one of the builder methods, a default colour will be retrieved
from the inner Theme
.
pub fn tris_textured<S, I, P, T>(
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
tris: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<(P, T)>>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
[src]
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
tris: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<(P, T)>>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
Describe the mesh with a sequence of textured triangles.
Each of the vertices must be represented as a tuple containing the point and tex
coordinates in that order, e.g. (point, tex_coords)
. point
may be of any type that
implements Into<Point3>
and tex_coords
may be of any type that implements
Into<Point2>
.
pub fn tris_colored<S, I, P, C>(
self,
inner_mesh: &mut Mesh<S>,
tris: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<(P, C)>>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
[src]
self,
inner_mesh: &mut Mesh<S>,
tris: I
) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<(P, C)>>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
Describe the mesh with a sequence of colored triangles.
Each of the vertices must be represented as a tuple containing the point and the color in
that order, e.g. (point, color)
. point
may be of any type that implements Into<Point3>
and color
may be of any type that implements IntoLinSrgba
.
pub fn tris<S, I, V>(self, inner_mesh: &mut Mesh<S>, tris: I) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<V>>,
V: Into<Point<S>>,
[src]
S: BaseFloat,
I: IntoIterator<Item = Tri<V>>,
V: Into<Point<S>>,
Describe the mesh with a sequence of triangles.
Each triangle may be composed of any vertex type that may be converted directly into
Point3
s.
This method assumes that the entire mesh should be coloured with a single colour. If a
colour is not specified via one of the builder methods, a default colour will be retrieved
from the inner Theme
.
pub fn indexed_textured<S, V, I, P, T>(
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator<Item = (P, T)>,
I: IntoIterator<Item = usize>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
[src]
self,
inner_mesh: &mut Mesh<S>,
texture_view: &dyn ToTextureView,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator<Item = (P, T)>,
I: IntoIterator<Item = usize>,
P: Into<Point<S>>,
T: Into<TexCoords<S>>,
Describe the mesh with the given indexed, textured points.
Each trio of indices
describes a single triangle made up of colored points
.
Each of the points
must be represented as a tuple containing the point and the texture
coordinates in that order, e.g. (point, tex_coords)
. point
may be of any type that
implements Into<Point3>
and tex_coords
may be of any type that implements
Into<Point2>
.
pub fn indexed_colored<S, V, I, P, C>(
self,
inner_mesh: &mut Mesh<S>,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator<Item = (P, C)>,
I: IntoIterator<Item = usize>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
[src]
self,
inner_mesh: &mut Mesh<S>,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator<Item = (P, C)>,
I: IntoIterator<Item = usize>,
P: Into<Point<S>>,
C: IntoLinSrgba<ColorScalar>,
Describe the mesh with the given indexed, colored points.
Each trio of indices
describes a single triangle made up of colored points
.
Each of the points
must be represented as a tuple containing the point and the color in
that order, e.g. (point, color)
. point
may be of any type that implements
Into<Point3>
and color
may be of any type that implements IntoLinSrgba
.
pub fn indexed<S, V, I>(
self,
inner_mesh: &mut Mesh<S>,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator,
V::Item: Into<Point<S>>,
I: IntoIterator<Item = usize>,
[src]
self,
inner_mesh: &mut Mesh<S>,
points: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator,
V::Item: Into<Point<S>>,
I: IntoIterator<Item = usize>,
Describe the mesh with the given indexed points.
Each trio of indices
describes a single triangle made up of points
.
Each point may be any type that may be converted directly into the Point3
type.
Trait Implementations
impl Clone for Vertexless
[src]
fn clone(&self) -> Vertexless
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Vertexless
[src]
impl Default for Vertexless
[src]
fn default() -> Vertexless
[src]
impl<S> From<Vertexless> for Primitive<S>
[src]
fn from(prim: Vertexless) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vertexless
impl Send for Vertexless
impl Sync for Vertexless
impl Unpin for Vertexless
impl UnwindSafe for Vertexless
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,