pub struct GlyphQuad {
pub codepoint: char,
pub x: f32,
pub y: f32,
}Expand description
A pre-laid-out glyph quad for GPU rendering.
Positions are in pixels relative to the symbol anchor. The batch builder uses these directly instead of re-computing layout from the raw text string.
Fields§
§codepoint: charUnicode codepoint (for atlas lookup).
x: f32Horizontal offset from the symbol anchor in pixels.
y: f32Vertical offset from the symbol anchor in pixels.
Trait Implementations§
impl StructuralPartialEq for GlyphQuad
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