NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_color.hpp
1#pragma once
2#include <lib/rvl/gx/GX.h>
3
6struct mColor : public GXColor {
7
9 mColor() { rgba = 0xFFFFFFFF; }
10
12 mColor(u8 red, u8 green, u8 blue, u8 alpha) { r = red; g = green; b = blue; a = alpha; }
13
15 mColor(u32 color) { rgba = color; }
16};
A 32-bit RGBA color.
Definition GX.h:13
A 32-bit RGBA color.
Definition m_color.hpp:6
mColor(u8 red, u8 green, u8 blue, u8 alpha)
Constructs a new color, given the 4 individual components.
Definition m_color.hpp:12
mColor()
Constructs an empty color (defaults to white).
Definition m_color.hpp:9
mColor(u32 color)
Constructs a new color, given the 4 components.
Definition m_color.hpp:15