pub struct GpuTriangle {
pub z: f32,
pub indices: [u32; 3],
}
Expand description
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
Implementations§
Source§impl GpuTriangle
impl GpuTriangle
Sourcepub fn new(offset: u32, indices: [u32; 3], z: impl Scalar) -> GpuTriangle
pub fn new(offset: u32, indices: [u32; 3], z: impl Scalar) -> GpuTriangle
Create a new untextured GPU Triangle
pub fn from_abstract(t: &AbstractTriangle, offset: u32, z: f32) -> Self
Trait Implementations§
Source§impl Clone for GpuTriangle
impl Clone for GpuTriangle
Source§fn clone(&self) -> GpuTriangle
fn clone(&self) -> GpuTriangle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Ord for GpuTriangle
impl Ord for GpuTriangle
Source§fn cmp(&self, other: &GpuTriangle) -> Ordering
fn cmp(&self, other: &GpuTriangle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GpuTriangle
impl PartialEq for GpuTriangle
Source§impl PartialOrd for GpuTriangle
impl PartialOrd for GpuTriangle
impl Eq for GpuTriangle
Auto Trait Implementations§
impl Freeze for GpuTriangle
impl RefUnwindSafe for GpuTriangle
impl Send for GpuTriangle
impl Sync for GpuTriangle
impl Unpin for GpuTriangle
impl UnwindSafe for GpuTriangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more