aboutsummaryrefslogtreecommitdiff
path: root/src/display/mod.rs
blob: 0a18e48522a5041490797d0c1705466df1f67978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod image;
pub use image::Image;
mod pixelflut;
pub use pixelflut::Pixelflut;

mod pixel;
use pixel::Pixel;

use std::io::Write;

use crate::vec3::Color;

pub trait Display {
    fn add_sample(&mut self, x: usize, y: usize, color: Color);
    fn maybe_write(&self, output: &mut impl Write);
    fn maybe_update(&mut self);
}