NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
mColor Struct Reference

#include <game/mLib/m_color.hpp>

Inheritance diagram for mColor:
[legend]

Description

A 32-bit RGBA color.

Definition at line 6 of file m_color.hpp.

Public Member Functions

 mColor ()
 Constructs an empty color (defaults to white).
 
 mColor (u8 red, u8 green, u8 blue, u8 alpha)
 Constructs a new color, given the 4 individual components.
 
 mColor (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

◆ mColor() [1/3]

mColor::mColor ( )
inline

Constructs an empty color (defaults to white).

Definition at line 9 of file m_color.hpp.

◆ mColor() [2/3]

mColor::mColor ( u8 red,
u8 green,
u8 blue,
u8 alpha )
inline

Constructs a new color, given the 4 individual components.

Definition at line 12 of file m_color.hpp.

◆ mColor() [3/3]

mColor::mColor ( u32 color)
inline

Constructs a new color, given the 4 components.

Definition at line 15 of file m_color.hpp.