libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Color_RGBA16 Union Reference

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.
 

Detailed Description

16-bit RGBA colour using 5-5-5-1 bit packing.

  • r, g, b: 5 bits each (range 0–31).
  • a: 1 bit (0 = transparent, 1 = opaque).

The rgba field gives the complete packed 16-bit value.

Member Data Documentation

◆ [struct]

struct { ... } Color_RGBA16

◆ a

uint16_t Color_RGBA16::a

Alpha channel (1 bit, 0 = transparent, 1 = opaque).

◆ b

uint16_t Color_RGBA16::b

Blue channel (5 bits, range 0–31).

◆ g

uint16_t Color_RGBA16::g

Green channel (5 bits, range 0–31).

◆ r

uint16_t Color_RGBA16::r

Red channel (5 bits, range 0–31).

◆ rgba

uint16_t Color_RGBA16::rgba

All four channels packed into a single 16-bit integer.


The documentation for this union was generated from the following file: