populating Texel struct definition for textures

pull/3195/head
David Golembiowski 2020-05-01 16:50:31 -04:00
parent c338c5ca02
commit 4f8eb0f79c
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#[derive(Clone, Debug, Copy)]
struct Texel {
b: u32,
g: u32,
r: u32,
a: u32
}
impl Texel {
pub fn new(b_u32: u32, g_u32: u32,
r_u32: u32, a_u32: u32) -> Texel {
Texel {
b: b_u32,
g: g_u32,
r: r_u32,
a: a_u32
}
}
}