Initial commit

This commit is contained in:
Mason Remaley 2024-07-29 01:17:25 -07:00
commit 48a86027ba
16 changed files with 80801 additions and 0 deletions

View file

@ -0,0 +1,8 @@
// It's unclear to me where the generator gets this define (maybe it's directly from the original
// cpp header?), so we generate it manually.
pub fn col32(r: u32, g: u32, b: u32, a: u32) u32 {
return a << IM_COL32_A_SHIFT |
b << IM_COL32_B_SHIFT |
g << IM_COL32_G_SHIFT |
r << IM_COL32_R_SHIFT;
}