C++: Generate image texture data for software renderer

This commit is contained in:
Olivier Goffart 2022-12-08 16:38:37 +01:00
parent b2ebac63c2
commit ccf3e8e9e9
6 changed files with 117 additions and 33 deletions

View file

@ -10,7 +10,7 @@ pub struct Size {
pub height: u32,
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, strum::Display)]
pub enum PixelFormat {
// 24 bit RGB
Rgb,