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
8struct Color : public GXColor {
9
11 Color() { rgba = 0xFFFFFFFF; }
12
14 Color(u8 red, u8 green, u8 blue, u8 alpha) { r = red; g = green; b = blue; a = alpha; }
15
17 Color(u32 color) { rgba = color; }
18};
19
20} // namespace ut
21} // namespace nw4r
A 32-bit RGBA color.
Definition GX.h:13
A 32-bit RGBA color.
Definition color.hpp:8
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