Trait rustzx_core::host::FrameBuffer[][src]

pub trait FrameBuffer {
    type Context: Clone;
    fn new(
        width: usize,
        height: usize,
        source: FrameBufferSource,
        context: Self::Context
    ) -> Self;
fn set_color(
        &mut self,
        x: usize,
        y: usize,
        color: ZXColor,
        brightness: ZXBrightness
    ); }

Associated Types

Required methods

fn new(
    width: usize,
    height: usize,
    source: FrameBufferSource,
    context: Self::Context
) -> Self
[src]

Creates canvas size with required dimensions (width, height)

fn set_color(
    &mut self,
    x: usize,
    y: usize,
    color: ZXColor,
    brightness: ZXBrightness
)
[src]

Set color with brightness for pixel on canvas at (x, y)

Implementors