[][src]Struct quicksilver::graphics::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

Methods

impl GpuTriangle[src]

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

Create a new untextured GPU Triangle

Trait Implementations

impl Clone for GpuTriangle[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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

impl<T> Downcast for T where
    T: Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]