Struct alacritty::renderer::RenderApi [−][src]
pub struct RenderApi<'a> {
active_tex: &'a mut c_uint,
batch: &'a mut Batch,
atlas: &'a mut Vec<Atlas>,
current_atlas: &'a mut usize,
program: &'a mut TextShaderProgram,
config: &'a UiConfig,
}Fields
active_tex: &'a mut c_uintbatch: &'a mut Batchatlas: &'a mut Vec<Atlas>current_atlas: &'a mut usizeprogram: &'a mut TextShaderProgramconfig: &'a UiConfigImplementations
pub fn draw_string(
&mut self,
glyph_cache: &mut GlyphCache,
point: Point<usize>,
fg: Rgb,
bg: Rgb,
string: &str
)
pub fn draw_string(
&mut self,
glyph_cache: &mut GlyphCache,
point: Point<usize>,
fg: Rgb,
bg: Rgb,
string: &str
)
Draw a string in a variable location. Used for printing the render timer, warnings and errors.
Trait Implementations
Load the rasterized glyph into GPU memory.