use crate::arch::x86_64::drivers::framebuffer::colour::Colour;
use core::fmt::Display;

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RenderError {
    Generic,
}

impl Display for RenderError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        match self {
            Self::Generic => write!(f, "Generic render error"),
        }
    }
}

impl core::error::Error for RenderError {}

pub struct ColouredChar {
    ch: u8,
    colour: Colour,
}
