[][src]Trait zinc64_core::VideoOutput

pub trait VideoOutput {
    fn get_dimension(&self) -> (usize, usize);
fn reset(&mut self);
fn write(&mut self, index: usize, color: u8); }

Video output used by VIC chip.

Required methods

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

Get frame buffer width and height.

fn reset(&mut self)

Reset output.

fn write(&mut self, index: usize, color: u8)

Write pixel color to the specified location. Index is computed from raster x, y coordinates: index = y * pitch + x.

Loading content...

Implementors

Loading content...