pub trait LoadGlyph {
    // Required methods
    fn load_glyph(&mut self, rasterized: &RasterizedGlyph) -> Glyph;
    fn clear(&mut self);
}
Expand description

LoadGlyph allows for copying a rasterized glyph into graphics memory.

Required Methods§

source

fn load_glyph(&mut self, rasterized: &RasterizedGlyph) -> Glyph

Load the rasterized glyph into GPU memory.

source

fn clear(&mut self)

Clear any state accumulated from previous loaded glyphs.

This can, for instance, be used to reset the texture Atlas.

Implementors§

source§

impl LoadGlyph for alacritty::renderer::text::gles2::RenderApi<'_>

source§

impl LoadGlyph for alacritty::renderer::text::glsl3::RenderApi<'_>

source§

impl LoadGlyph for LoaderApi<'_>