|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
16-bit RGBA colour using 5-5-5-1 bit packing. More...
#include <color.h>
Public Attributes | ||
| struct { | ||
| uint16_t r: 5 | ||
| Red channel (5 bits, range 0–31). More... | ||
| uint16_t g: 5 | ||
| Green channel (5 bits, range 0–31). More... | ||
| uint16_t b: 5 | ||
| Blue channel (5 bits, range 0–31). More... | ||
| uint16_t a: 1 | ||
| Alpha channel (1 bit, 0 = transparent, 1 = opaque). More... | ||
| }; | ||
| uint16_t | rgba | |
| All four channels packed into a single 16-bit integer. | ||
16-bit RGBA colour using 5-5-5-1 bit packing.
The rgba field gives the complete packed 16-bit value.
| struct { ... } Color_RGBA16 |
| uint16_t Color_RGBA16::a |
Alpha channel (1 bit, 0 = transparent, 1 = opaque).
| uint16_t Color_RGBA16::b |
Blue channel (5 bits, range 0–31).
| uint16_t Color_RGBA16::g |
Green channel (5 bits, range 0–31).
| uint16_t Color_RGBA16::r |
Red channel (5 bits, range 0–31).
| uint16_t Color_RGBA16::rgba |
All four channels packed into a single 16-bit integer.