[][src]Struct paddle::GpuTriangle

pub struct GpuTriangle {
    pub z: f32,
    pub indices: [u32; 3],
    pub image: Option<Image>,
}

A triangle to draw to the GPU

Fields

z: f32

The plane the triangle falls on

indices: [u32; 3]

The indexes in the vertex list that the GpuTriangle uses

image: Option<Image>

The (optional) image used by the GpuTriangle

All of the vertices used by the triangle should agree on whether it uses an image, it is up to you to maintain this

Implementations

impl GpuTriangle[src]

pub fn new(
    offset: u32,
    indices: [u32; 3],
    z: impl Scalar,
    bkg: Background<'_>
) -> GpuTriangle
[src]

Create a new untextured GPU Triangle

pub fn from_abstract(t: &AbstractTriangle, offset: u32, z: f32) -> Self[src]

Trait Implementations

impl Clone for GpuTriangle[src]

impl Eq for GpuTriangle[src]

impl Ord for GpuTriangle[src]

impl PartialEq<GpuTriangle> for GpuTriangle[src]

impl PartialOrd<GpuTriangle> for GpuTriangle[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>,