pub struct TextVertex {
pub x: f32,
pub y: f32,
pub u: f32,
pub v: f32,
pub color: u32,
}Expand description
A textured vertex, used for glyph-atlas text.
Fields§
§x: f32The horizontal position of the glyph quad, in canvas pixels.
y: f32The vertical position of the glyph quad, in canvas pixels.
u: f32The horizontal texture coordinate of the glyph’s top-left corner.
v: f32The vertical texture coordinate of the glyph’s top-left corner.
color: u32The packed colour, as 0xRRGGBBAA.
Trait Implementations§
Source§impl Clone for TextVertex
impl Clone for TextVertex
impl Copy for TextVertex
Source§impl Debug for TextVertex
impl Debug for TextVertex
Source§impl Default for TextVertex
impl Default for TextVertex
Source§impl PartialEq for TextVertex
impl PartialEq for TextVertex
impl StructuralPartialEq for TextVertex
Auto Trait Implementations§
impl Freeze for TextVertex
impl RefUnwindSafe for TextVertex
impl Send for TextVertex
impl Sync for TextVertex
impl Unpin for TextVertex
impl UnsafeUnpin for TextVertex
impl UnwindSafe for TextVertex
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