mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 13:46:21 -04:00
Add GXNormal1x16 and GXColor3x8 inline utility functions to GX.h for simplified normal and color input handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user