From 9d76f1decdcc777490771bd9faf6cb57dbf6535d Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Thu, 5 Mar 2026 12:53:10 -0600 Subject: [PATCH] Add `GXNormal1x16` and `GXColor3x8` inline utility functions to `GX.h` for simplified normal and color input handling. --- include/dolphin/gx/GX.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/dolphin/gx/GX.h b/include/dolphin/gx/GX.h index a9052ce9c..e8b76454d 100644 --- a/include/dolphin/gx/GX.h +++ b/include/dolphin/gx/GX.h @@ -188,10 +188,20 @@ inline void GXNormal1x8(u8 x) { GXFIFO.u8 = x; } +inline void GXNormal1x16(u16 x) { + GXFIFO.u16 = x; +} + inline void GXColor1x16(u16 x) { GXFIFO.u16 = x; } +inline void GXColor3x8(u8 r, u8 g, u8 b) { + GXFIFO.u8 = r; + GXFIFO.u8 = g; + GXFIFO.u8 = b; +} + inline void GXColor4x8(u8 r, u8 g, u8 b, u8 a) { GXFIFO.u8 = r; GXFIFO.u8 = g;