[][src]Trait ludus::ports::VideoDevice

pub trait VideoDevice {
    fn blit_pixels(&mut self, pixels: &PixelBuffer);
}

This represents a video device we can write a pixel buffer to.

When implementing this trait, the device should be scaled to a factor of NES_WIDTH * NES_HEIGHT, and be able to accept a pixel buffer of those dimensions.

Required methods

fn blit_pixels(&mut self, pixels: &PixelBuffer)

Transfer a buffer of pixels onto this device.

Loading content...

Implementors

Loading content...