|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
32-bit RGBA colour stored in a union that allows component and packed-integer access. More...
#include <color.h>
Public Attributes | ||
| struct { | ||
| uint8_t a | ||
| Alpha channel (little-endian layout — lowest address byte). More... | ||
| uint8_t b | ||
| Blue channel (little-endian layout). More... | ||
| uint8_t g | ||
| Green channel (little-endian layout). More... | ||
| uint8_t r | ||
| Red channel (little-endian layout — highest address byte). More... | ||
| }; | ||
| uint32_t | rgba | |
| All four channels packed into a single 32-bit integer. | ||
32-bit RGBA colour stored in a union that allows component and packed-integer access.
The byte order of the components within rgba depends on whether the target is big-endian (IS_BIGENDIAN defined) or little-endian. Use the named struct members for portable access and the rgba field only when a packed 32-bit representation is required (e.g. GPU uploads).
rgba field when alignment requirements demand it. | struct { ... } Color_RGBA8_u32 |
| uint8_t Color_RGBA8_u32::a |
Alpha channel (little-endian layout — lowest address byte).
| uint8_t Color_RGBA8_u32::b |
Blue channel (little-endian layout).
| uint8_t Color_RGBA8_u32::g |
Green channel (little-endian layout).
| uint8_t Color_RGBA8_u32::r |
Red channel (little-endian layout — highest address byte).
| uint32_t Color_RGBA8_u32::rgba |
All four channels packed into a single 32-bit integer.