pub struct GlyphQuad {
pub left: f32,
pub top: f32,
pub width: f32,
pub height: f32,
pub uv: [f32; 4],
pub color: [f32; 4],
pub layer: f32,
}Expand description
One glyph quad in device pixels, ready to be expanded into triangles.
Fields§
§left: f32§top: f32§width: f32§height: f32§uv: [f32; 4]Atlas rectangle: u, v, width, height normalized to atlas size.
color: [f32; 4]§layer: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphQuad
impl RefUnwindSafe for GlyphQuad
impl Send for GlyphQuad
impl Sync for GlyphQuad
impl Unpin for GlyphQuad
impl UnsafeUnpin for GlyphQuad
impl UnwindSafe for GlyphQuad
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