FontdueRenderTarget

Trait FontdueRenderTarget 

Source
pub trait FontdueRenderTarget {
    // Required methods
    fn dimensions(&self) -> (usize, usize);
    fn blend_pixel(&mut self, x: i32, y: i32, color: Color, alpha: u8);
}
Expand description

Surface that can blend individual pixels for text rendering.

Required Methods§

Source

fn dimensions(&self) -> (usize, usize)

Return the width and height of the render surface in pixels.

Source

fn blend_pixel(&mut self, x: i32, y: i32, color: Color, alpha: u8)

Blend color at (x, y) using the provided alpha value.

Implementors§