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
6
struct
mColor
:
public
nw4r::ut::Color
{
7
public
:
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
};
nw4r::ut::Color
mColor::lerp
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::mColor
mColor(nw4r::ut::Color color)
Creates a color from from a base nw4r::ut::Color instance.
Definition
m_color.hpp:9
mColor::mColor
mColor()
Creates the default color.
Definition
m_color.hpp:8
include
game
mLib
m_color.hpp
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.15.0