pub struct Glyph {
pub uv: Rect,
pub offset: [f32; 2],
pub size: [f32; 2],
pub advance: f32,
}Expand description
Eine Glyph im Atlas: UV-Rechteck (normalisiert, exakt die Texel der Glyphenfläche), Offset von der Grundlinie zur linken Oberkante der Umrissfläche (y nach unten), Breite/Höhe in px, Vorschub.
Fields§
§uv: Rect§offset: [f32; 2]§size: [f32; 2]§advance: f32Trait Implementations§
impl Copy for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin for Glyph
impl UnwindSafe for Glyph
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