NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::ut::Color Struct Reference

#include <lib/nw4r/ut/color.hpp>

Inheritance diagram for nw4r::ut::Color:
[legend]

Description

A 32-bit RGBA color.

Definition at line 8 of file color.hpp.

Public Member Functions

 Color ()
 Constructs an empty color (defaults to white).
 
 Color (u8 red, u8 green, u8 blue, u8 alpha)
 Constructs a new color, given the 4 individual components.
 
 Color (u32 color)
 Constructs a new color, given the 4 components.
 

Additional Inherited Members

- Public Attributes inherited from _GXColor
union { 
 
   struct { 
 
      u8   r 
 
      u8   g 
 
      u8   b 
 
      u8   a 
 
   }  
 
   u32   rgba 
 
};  
 

Constructor & Destructor Documentation

◆ Color() [1/3]

nw4r::ut::Color::Color ( )
inline

Constructs an empty color (defaults to white).

Definition at line 11 of file color.hpp.

◆ Color() [2/3]

nw4r::ut::Color::Color ( u8  red,
u8  green,
u8  blue,
u8  alpha 
)
inline

Constructs a new color, given the 4 individual components.

Definition at line 14 of file color.hpp.

◆ Color() [3/3]

nw4r::ut::Color::Color ( u32  color)
inline

Constructs a new color, given the 4 components.

Definition at line 17 of file color.hpp.