blob: 2fd2cd3d8495c3560b442ff8a5f63c00bfbda687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[derive(Debug, Clone, Default)]
#[repr(C)]
pub struct Color<Value>
{
pub red: Value,
pub green: Value,
pub blue: Value,
}
impl Color<f32>
{
pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 };
}
|