pub struct AtlasEntry {
pub uv_pos: [f32; 2],
pub uv_size: [f32; 2],
pub pixel_size: [f32; 2],
pub pixel_offset: [f32; 2],
pub is_color: bool,
}Expand description
Metadata for a glyph stored in the GPU atlas.
Fields§
§uv_pos: [f32; 2]Normalized UV coordinates (top-left) in the atlas texture.
uv_size: [f32; 2]Normalized UV size (width, height) in the atlas texture.
pixel_size: [f32; 2]Physical pixel size [width, height] of the glyph in the atlas.
pixel_offset: [f32; 2]Physical pixel offset [left, top] relative to the logical origin.
is_color: boolWhether this is a color glyph.
Trait Implementations§
Source§impl Clone for AtlasEntry
impl Clone for AtlasEntry
Source§fn clone(&self) -> AtlasEntry
fn clone(&self) -> AtlasEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AtlasEntry
Source§impl Debug for AtlasEntry
impl Debug for AtlasEntry
Source§impl PartialEq for AtlasEntry
impl PartialEq for AtlasEntry
impl StructuralPartialEq for AtlasEntry
Auto Trait Implementations§
impl Freeze for AtlasEntry
impl RefUnwindSafe for AtlasEntry
impl Send for AtlasEntry
impl Sync for AtlasEntry
impl Unpin for AtlasEntry
impl UnsafeUnpin for AtlasEntry
impl UnwindSafe for AtlasEntry
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