group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HudColor Struct Reference

RGBA color for HUD elements (linear space, straight alpha). More...

#include <HudTypes.hpp>

Public Member Functions

constexpr HudColor ()=default
constexpr HudColor (float r_, float g_, float b_, float a_=1.f)

Static Public Member Functions

static constexpr HudColor white ()
static constexpr HudColor black ()
static constexpr HudColor red ()
static constexpr HudColor green ()
static constexpr HudColor yellow ()
static constexpr HudColor cyan ()
static constexpr HudColor transparent ()

Public Attributes

float r = 1.f
float g = 1.f
float b = 1.f
float a = 1.f

Detailed Description

RGBA color for HUD elements (linear space, straight alpha).

Constructor & Destructor Documentation

◆ HudColor() [1/2]

HudColor::HudColor ( )
constexprdefault
Here is the caller graph for this function:

◆ HudColor() [2/2]

HudColor::HudColor ( float r_,
float g_,
float b_,
float a_ = 1.f )
inlineconstexpr

Member Function Documentation

◆ black()

constexpr HudColor HudColor::black ( )
inlinestaticconstexpr
Here is the call graph for this function:

◆ cyan()

constexpr HudColor HudColor::cyan ( )
inlinestaticconstexpr
Here is the call graph for this function:

◆ green()

constexpr HudColor HudColor::green ( )
inlinestaticconstexpr
Here is the call graph for this function:

◆ red()

constexpr HudColor HudColor::red ( )
inlinestaticconstexpr
Here is the call graph for this function:

◆ transparent()

constexpr HudColor HudColor::transparent ( )
inlinestaticconstexpr
Here is the call graph for this function:

◆ white()

constexpr HudColor HudColor::white ( )
inlinestaticconstexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ yellow()

constexpr HudColor HudColor::yellow ( )
inlinestaticconstexpr
Here is the call graph for this function:

Member Data Documentation

◆ a

float HudColor::a = 1.f

◆ b

float HudColor::b = 1.f

◆ g

float HudColor::g = 1.f

◆ r

float HudColor::r = 1.f

The documentation for this struct was generated from the following file: