mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
e29b77919b
- `z_effect`: Matched and essentially all documented. - `z_eff_spark.c`: Decompiled (1 non matching left) and mostly documented. - `z_eff_shield_particle.c`: Matched and mostly documented. - `z_eff_blure.c`: Decompiled (5 non matchings left) and partially documented. - `z_effect_soft_sprite.c`: Matched and mostly documented. - `z_eff_ss_dead.c`: Matched but not documented. - `z_effect_soft_sprite_dlftbls.c`: "Matched" (only data, contains the effect ss overlay table). - `z_effect_soft_sprite_old_init.c`: Not decompiled, but functions are categorized by effect ss overlay. And they should be decompiled at the same time as their corresponding effect ss in the future. Other changes: - Added a lot of types/enums to `z64effect.h`and moved+renamed some structs from `z64.h` to this header - Added effect ss overlay segments to `segment_symbols.h` and effect ss init vars to `initvars.h` - Added a macro called `VTX_T` to generate a `Vtx_t` in the same style as `VTX` - Fixed `flg_set.c` .bss to be in the right file - Removed `tools/overlayhelpers/batchdisasm` since it's no longer relevant - Removed unused leftover asm from recent PRs
27 lines
353 B
C
27 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
|