1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 11:49:24 +00:00
oot/include/color.h

25 lines
317 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#ifndef _COLOR_H_
#define _COLOR_H_
typedef struct {
u8 r, g, b;
2020-03-17 04:31:30 +00:00
} Color_RGB8;
typedef union {
struct {
u8 r, g, b, a;
};
u32 rgba;
2020-03-17 04:31:30 +00:00
} Color_RGBA8;
// Variant without u32 union
typedef struct {
u8 r, g, b, a;
} Color_RGBA8_n;
2020-03-22 21:50:11 +00:00
typedef struct {
2020-03-17 04:31:30 +00:00
f32 r, g, b, a;
} Color_RGBAf;
#endif