Struct solstice_2d::Vertex2D[][src]

#[repr(C)]pub struct Vertex2D {
    pub position: [f32; 2],
    pub color: [f32; 4],
    pub uv: [f32; 2],
}

Fields

position: [f32; 2]color: [f32; 4]uv: [f32; 2]

Implementations

impl Vertex2D[src]

pub fn new(position: [f32; 2], color: [f32; 4], uv: [f32; 2]) -> Self[src]

pub fn position(&self) -> &[f32; 2][src]

Trait Implementations

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: Iterator<Item = Vertex2D> + 'a,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl Clone for Vertex2D[src]

impl Copy for Vertex2D[src]

impl Debug for Vertex2D[src]

impl Default for Vertex2D[src]

impl<G> Draw<Vertex2D, G> for DrawList<'_> where
    G: Geometry<Vertex2D> + Clone + 'static, 
[src]

impl From<(f32, f32)> for Vertex2D[src]

impl From<(f64, f64)> for Vertex2D[src]

impl From<Point> for Vertex2D[src]

impl Geometry<Vertex2D> for Rectangle[src]

type Vertices = IntoIter<Vertex2D>

type Indices = Copied<Iter<'static, u32>>

impl<T: SimpleConvexGeometry> Geometry<Vertex2D> for T[src]

type Vertices = T::Vertices

type Indices = FlatMap<Range<u32>, ArrayVec<[u32; 3]>, fn(_: u32) -> ArrayVec<[u32; 3]>>

impl Vertex for Vertex2D[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,