[][src]Struct alacritty::renderer::QuadRenderer

pub struct QuadRenderer {
    program: TextShaderProgram,
    vao: c_uint,
    ebo: c_uint,
    vbo_instance: c_uint,
    atlas: Vec<Atlas>,
    current_atlas: usize,
    active_tex: c_uint,
    batch: Batch,
    rect_renderer: RectRenderer,
}

Fields

program: TextShaderProgramvao: c_uintebo: c_uintvbo_instance: c_uintatlas: Vec<Atlas>current_atlas: usizeactive_tex: c_uintbatch: Batchrect_renderer: RectRenderer

Implementations

impl QuadRenderer[src]

pub fn new() -> Result<QuadRenderer, Error>[src]

pub fn draw_rects(&mut self, size_info: &SizeInfo, rects: Vec<RenderRect>)[src]

Draw all rectangles simultaneously to prevent excessive program swaps.

pub fn with_api<F, T>(
    &mut self,
    config: &UIConfig,
    props: &SizeInfo,
    func: F
) -> T where
    F: FnOnce(RenderApi<'_>) -> T, 
[src]

pub fn with_loader<F, T>(&mut self, func: F) -> T where
    F: FnOnce(LoaderApi<'_>) -> T, 
[src]

pub fn resize(&mut self, size: &SizeInfo)[src]

Trait Implementations

impl Debug for QuadRenderer[src]

Auto Trait Implementations

impl RefUnwindSafe for QuadRenderer

impl Send for QuadRenderer

impl Sync for QuadRenderer

impl Unpin for QuadRenderer

impl UnwindSafe for QuadRenderer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.