mirror of https://github.com/zeldaret/oot.git
28 lines
353 B
C
28 lines
353 B
C
#ifndef _COLOR_H_
|
|
#define _COLOR_H_
|
|
|
|
typedef union {
|
|
struct {
|
|
u8 r, g, b;
|
|
};
|
|
u32 rgb;
|
|
} Color_RGB8;
|
|
|
|
typedef union {
|
|
struct {
|
|
u8 r, g, b, a;
|
|
};
|
|
u32 rgba;
|
|
} Color_RGBA8;
|
|
|
|
// Variant without u32 union
|
|
typedef struct {
|
|
u8 r, g, b, a;
|
|
} Color_RGBA8_n;
|
|
|
|
typedef struct {
|
|
f32 r, g, b, a;
|
|
} Color_RGBAf;
|
|
|
|
#endif
|