From 3ff385ffb648df197426d74e56d45557d6ffbe6f Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Thu, 5 Mar 2026 12:14:18 -0600 Subject: [PATCH] Add inline utility function `GXColor4x8` to `GX.h` for streamlined color input handling --- include/dolphin/gx/GX.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/dolphin/gx/GX.h b/include/dolphin/gx/GX.h index dbd7f0345..a9052ce9c 100644 --- a/include/dolphin/gx/GX.h +++ b/include/dolphin/gx/GX.h @@ -192,6 +192,13 @@ inline void GXColor1x16(u16 x) { GXFIFO.u16 = x; } +inline void GXColor4x8(u8 r, u8 g, u8 b, u8 a) { + GXFIFO.u8 = r; + GXFIFO.u8 = g; + GXFIFO.u8 = b; + GXFIFO.u8 = a; +} + inline void GXTexCoord1x16(u16 x) { GXFIFO.u16 = x; }