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
4
namespace
nw4r {
5
namespace
ut {
6
8
struct
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
_GXColor
A 32-bit RGBA color.
Definition
GX.h:13
nw4r::ut::Color
A 32-bit RGBA color.
Definition
color.hpp:8
nw4r::ut::Color::Color
Color(u8 red, u8 green, u8 blue, u8 alpha)
Constructs a new color, given the 4 individual components.
Definition
color.hpp:14
nw4r::ut::Color::Color
Color(u32 color)
Constructs a new color, given the 4 components.
Definition
color.hpp:17
nw4r::ut::Color::Color
Color()
Constructs an empty color (defaults to white).
Definition
color.hpp:11
include
lib
nw4r
ut
color.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.12.0