mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 05:40:36 -04:00
Add inline utility function GXColor4x8 to GX.h for streamlined color input handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user