NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
color.hpp
1#pragma once
2#include <lib/rvl/gx/GX.h>
3
4namespace nw4r {
5namespace ut {
6
7/// @brief A 32-bit RGBA color.
8struct Color : public GXColor {
9
10 /// @brief Constructs an empty color (defaults to white).
11 Color() { rgba = 0xFFFFFFFF; }
12
13 /// @brief Constructs a new color, given the 4 individual components.
14 Color(u8 red, u8 green, u8 blue, u8 alpha) { r = red; g = green; b = blue; a = alpha; }
15
16 /// @brief Constructs a new color, given the 4 components.
17 Color(u32 color) { rgba = color; }
18};
19
20} // namespace ut
21} // namespace nw4r
struct _GXColor GXColor
A 32-bit RGBA color.
Debugging library which includes various utilities used by the rest of nw4r.
Definition list.cpp:4
Color(u8 red, u8 green, u8 blue, u8 alpha)
Constructs a new color, given the 4 individual components.
Definition color.hpp:14
Color(u32 color)
Constructs a new color, given the 4 components.
Definition color.hpp:17
Color()
Constructs an empty color (defaults to white).
Definition color.hpp:11