Struct nannou::draw::mesh::builder::MeshBuilder [−][src]
pub struct MeshBuilder<'a, A> { /* fields omitted */ }
Implementations
impl<'a> MeshBuilder<'a, SingleColor>
[src]
pub fn single_color(
mesh: &'a mut Mesh,
transform: Matrix4<f32>,
color: Color
) -> Self
[src]
mesh: &'a mut Mesh,
transform: Matrix4<f32>,
color: Color
) -> Self
Begin extending a mesh rendered with a single colour.
impl<'a> MeshBuilder<'a, ColorPerPoint>
[src]
pub fn color_per_point(mesh: &'a mut Mesh, transform: Matrix4<f32>) -> Self
[src]
Begin extending a mesh where the path interpolates a unique color per point.
impl<'a> MeshBuilder<'a, TexCoordsPerPoint>
[src]
pub fn tex_coords_per_point(mesh: &'a mut Mesh, transform: Matrix4<f32>) -> Self
[src]
Begin extending a mesh where the path interpolates a unique texture coordinates per point.
Trait Implementations
impl<'a> FillGeometryBuilder for MeshBuilder<'a, SingleColor>
[src]
fn add_fill_vertex(
&mut self,
position: Point,
_attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
_attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
impl<'a> FillGeometryBuilder for MeshBuilder<'a, ColorPerPoint>
[src]
fn add_fill_vertex(
&mut self,
position: Point,
attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
impl<'a> FillGeometryBuilder for MeshBuilder<'a, TexCoordsPerPoint>
[src]
fn add_fill_vertex(
&mut self,
position: Point,
attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
attrs: FillAttributes<'_>
) -> Result<VertexId, GeometryBuilderError>
impl<'a, A> GeometryBuilder for MeshBuilder<'a, A>
[src]
fn begin_geometry(&mut self)
[src]
fn end_geometry(&mut self) -> Count
[src]
fn add_triangle(&mut self, a: VertexId, b: VertexId, c: VertexId)
[src]
fn abort_geometry(&mut self)
[src]
impl<'a> StrokeGeometryBuilder for MeshBuilder<'a, SingleColor>
[src]
fn add_stroke_vertex(
&mut self,
position: Point,
_attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
_attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
impl<'a> StrokeGeometryBuilder for MeshBuilder<'a, ColorPerPoint>
[src]
fn add_stroke_vertex(
&mut self,
position: Point,
attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
impl<'a> StrokeGeometryBuilder for MeshBuilder<'a, TexCoordsPerPoint>
[src]
fn add_stroke_vertex(
&mut self,
position: Point,
attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
[src]
&mut self,
position: Point,
attrs: StrokeAttributes<'_, '_>
) -> Result<VertexId, GeometryBuilderError>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for MeshBuilder<'a, A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<'a, A> Send for MeshBuilder<'a, A> where
A: Send,
A: Send,
impl<'a, A> Sync for MeshBuilder<'a, A> where
A: Sync,
A: Sync,
impl<'a, A> Unpin for MeshBuilder<'a, A> where
A: Unpin,
A: Unpin,
impl<'a, A> !UnwindSafe for MeshBuilder<'a, A>
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,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,