lightmap 0.6.0

Light map generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::{Display, Formatter};

/// An error that may occur during ligth map generation.
#[derive(Debug)]
pub enum Error {
    /// An index of a vertex in a triangle is out of bounds.
    InvalidIndex,
}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        match self {
            Error::InvalidIndex => {
                write!(f, "An index of a vertex in a triangle is out of bounds.")
            }
        }
    }
}