mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 13:30:47 +00:00
e3f1ccd902
* Fix all headers to comply with C standard * fix a file in libultra * Update include/stdbool.h Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update stdbool.h * Update z64animation.h Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
34 lines
479 B
C
34 lines
479 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_RGBA16;
|
|
|
|
#endif
|