NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_color.hpp
1#pragma once
2#include <nw4r/ut.h>
3
4/// @brief A 32-bit RGBA color.
5/// @ingroup mlib
6struct mColor : public nw4r::ut::Color {
7public:
8 mColor() : nw4r::ut::Color() {} ///< Creates the default color.
9 mColor(nw4r::ut::Color color) : nw4r::ut::Color(color) {} ///< Creates a color from from a base nw4r::ut::Color instance.
10
11 /// @brief Linearly interpolates all RGBA channels between two color values.
12 /// @param c1 The first color.
13 /// @param c2 The second color.
14 /// @param t The blend weight, between @p 0.0f and @p 1.0f.
15 void lerp(const GXColor &c1, const GXColor &c2, float t);
16};
void lerp(const GXColor &c1, const GXColor &c2, float t)
Linearly interpolates all RGBA channels between two color values.
Definition m_color.cpp:3
mColor(nw4r::ut::Color color)
Creates a color from from a base nw4r::ut::Color instance.
Definition m_color.hpp:9
mColor()
Creates the default color.
Definition m_color.hpp:8