alacritty::renderer::text

Trait TextRenderBatch

Source
pub trait TextRenderBatch {
    // Required methods
    fn is_empty(&self) -> bool;
    fn full(&self) -> bool;
    fn tex(&self) -> c_uint;
    fn add_item(
        &mut self,
        cell: &RenderableCell,
        glyph: &Glyph,
        size_info: &SizeInfo,
    );
}

Required Methods§

Source

fn is_empty(&self) -> bool

Check if Batch is empty.

Source

fn full(&self) -> bool

Check whether the Batch is full.

Source

fn tex(&self) -> c_uint

Get texture Batch is using.

Source

fn add_item( &mut self, cell: &RenderableCell, glyph: &Glyph, size_info: &SizeInfo, )

Add item to the batch.

Implementors§

Source§

impl TextRenderBatch for alacritty::renderer::text::gles2::Batch

Source§

impl TextRenderBatch for alacritty::renderer::text::glsl3::Batch