NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
mColor Struct Reference

#include <game/mLib/m_color.hpp>

Inheritance diagram for mColor:
[legend]

Description

A 32-bit RGBA color.

Definition at line 6 of file m_color.hpp.

Public Member Functions

 mColor ()
 Creates the default color.
 mColor (nw4r::ut::Color color)
 Creates a color from from a base nw4r::ut::Color instance.
void lerp (const GXColor &c1, const GXColor &c2, float t)
 Linearly interpolates all RGBA channels between two color values.

Constructor & Destructor Documentation

◆ mColor() [1/2]

mColor::mColor ( )
inline

Creates the default color.

Definition at line 8 of file m_color.hpp.

◆ mColor() [2/2]

mColor::mColor ( nw4r::ut::Color color)
inline

Creates a color from from a base nw4r::ut::Color instance.

Definition at line 9 of file m_color.hpp.

Member Function Documentation

◆ lerp()

void mColor::lerp ( const GXColor & c1,
const GXColor & c2,
float t )

Linearly interpolates all RGBA channels between two color values.

Parameters
c1The first color.
c2The second color.
tThe blend weight, between 0.0f and 1.0f.

Definition at line 3 of file m_color.cpp.