[][src]Struct bracket_lib::prelude::SparseConsoleBackend

pub struct SparseConsoleBackend { /* fields omitted */ }

Methods

impl SparseConsoleBackend[src]

pub fn new(
    platform: &BTermPlatform,
    _width: usize,
    _height: usize
) -> SparseConsoleBackend
[src]

pub fn rebuild_vertices(
    &mut self,
    platform: &BTermPlatform,
    height: u32,
    width: u32,
    offset_x: f32,
    offset_y: f32,
    scale: f32,
    scale_center: (i32, i32),
    tiles: &[SparseTile]
)
[src]

Helper to build vertices for the sparse grid.

pub fn gl_draw(
    &mut self,
    font: &Font,
    shader: &Shader,
    platform: &BTermPlatform,
    tiles: &[SparseTile]
)
[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,