[][src]Struct paddle::graphics::AbstractVertex

pub struct AbstractVertex {
    pub pos: Vector,
    pub tex_pos: Option<Vector>,
    pub col: Color,
}

A vertex for drawing items to the GPU

Fields

pos: Vector

The position of the vertex in space

tex_pos: Option<Vector>

If there is a texture attached to this vertex, where to get the texture data from

It is normalized from 0 to 1

col: Color

The color to blend this vertex with

Implementations

impl AbstractVertex[src]

pub fn new(
    pos: impl Into<Vector>,
    tex_pos: Option<Vector>,
    bkg: Background<'_>
) -> AbstractVertex
[src]

Create a new abstract vertex

Trait Implementations

impl Clone for AbstractVertex[src]

impl Copy for AbstractVertex[src]

impl Debug for AbstractVertex[src]

impl VertexConstructor<FillVertex, AbstractVertex> for Color[src]

impl VertexConstructor<StrokeVertex, AbstractVertex> for Color[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Activity for T where
    T: Any
[src]

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<T> From<T> for T[src]

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

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>,