OpenBarnyard
 
Loading...
Searching...
No Matches
AFade::Color Struct Reference

#include <AFade.h>

Public Member Functions

constexpr Color ()=default
 
constexpr Color (TUINT8 a_uiA, TUINT8 a_uiR, TUINT8 a_uiG, TUINT8 a_uiB)
 
constexpr Color (const Toshi::TColor &a_rColor)
 
constexpr Color (TUINT32 a_uiColor)
 
constexpr TUINT32 GetTColor32 () const
 

Public Attributes

TUINT8 A
 
TUINT8 R
 
TUINT8 G
 
TUINT8 B
 

Detailed Description

Definition at line 13 of file AFade.h.

Constructor & Destructor Documentation

◆ Color() [1/4]

AFade::Color::Color ( )
constexprdefault

◆ Color() [2/4]

AFade::Color::Color ( TUINT8 a_uiA,
TUINT8 a_uiR,
TUINT8 a_uiG,
TUINT8 a_uiB )
inlineconstexpr

Definition at line 22 of file AFade.h.

23 : A( a_uiA ), R( a_uiR ), G( a_uiG ), B( a_uiB ) {}
TUINT8 G
Definition AFade.h:17
TUINT8 A
Definition AFade.h:15
TUINT8 R
Definition AFade.h:16
TUINT8 B
Definition AFade.h:18

◆ Color() [3/4]

AFade::Color::Color ( const Toshi::TColor & a_rColor)
inlineconstexpr

Definition at line 25 of file AFade.h.

26 : A( a_rColor.A ), R( a_rColor.G ), G( a_rColor.G ), B( a_rColor.B ) {}

◆ Color() [4/4]

AFade::Color::Color ( TUINT32 a_uiColor)
inlineconstexpr

Definition at line 28 of file AFade.h.

29 : A( TCOLOR_GET_A( a_uiColor ) ), R( TCOLOR_GET_R( a_uiColor ) ), G( TCOLOR_GET_G( a_uiColor ) ), B( TCOLOR_GET_B( a_uiColor ) )
30 {}
#define TCOLOR_GET_A(COLOR)
Definition TColor.h:10
#define TCOLOR_GET_G(COLOR)
Definition TColor.h:12
#define TCOLOR_GET_B(COLOR)
Definition TColor.h:13
#define TCOLOR_GET_R(COLOR)
Definition TColor.h:11

Member Function Documentation

◆ GetTColor32()

TUINT32 AFade::Color::GetTColor32 ( ) const
inlineconstexpr

Definition at line 32 of file AFade.h.

33 {
34 return TCOLOR_ALPHA( R, G, B, A );
35 }
#define TCOLOR_ALPHA(R, G, B, A)
Definition TColor.h:5

Member Data Documentation

◆ A

TUINT8 AFade::Color::A

Definition at line 15 of file AFade.h.

◆ B

TUINT8 AFade::Color::B

Definition at line 18 of file AFade.h.

◆ G

TUINT8 AFade::Color::G

Definition at line 17 of file AFade.h.

◆ R

TUINT8 AFade::Color::R

Definition at line 16 of file AFade.h.


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