mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 23:36:22 +00:00
8f0549cd9a
* now equivalent * stuff * remove struct Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
34 lines
483 B
C
34 lines
483 B
C
#ifndef _COLOR_H_
|
|
#define _COLOR_H_
|
|
|
|
typedef struct {
|
|
u8 r, g, b;
|
|
} Color_RGB8;
|
|
|
|
typedef struct {
|
|
u8 r, g, b, a;
|
|
} Color_RGBA8;
|
|
|
|
// only use when necessary for alignment purposes
|
|
typedef union {
|
|
struct {
|
|
u8 r, g, b, a;
|
|
};
|
|
u32 rgba;
|
|
} Color_RGBA8_u32;
|
|
|
|
typedef struct {
|
|
f32 r, g, b, a;
|
|
} Color_RGBAf;
|
|
|
|
typedef union {
|
|
struct {
|
|
u16 r : 5;
|
|
u16 g : 5;
|
|
u16 b : 5;
|
|
u16 a : 1;
|
|
};
|
|
u16 rgba;
|
|
} Color_RGB5A1;
|
|
|
|
#endif
|