OpenBarnyard
 
Loading...
Searching...
No Matches
TColor Struct Reference

#include <TColor.h>

Public Member Functions

 TColor ()=default
 
TFORCEINLINE constexpr TColor (TUINT32 a_uiColor)
 
TFORCEINLINE constexpr TColor (TUINT8 a_uiR, TUINT8 a_uiG, TUINT8 a_uiB, TUINT8 a_uiA=255)
 
TFORCEINLINE TColoroperator= (TUINT32 a_uiColor)
 

Public Attributes

union { 
 
   struct { 
 
      TUINT8   B 
 
      TUINT8   G 
 
      TUINT8   R 
 
      TUINT8   A 
 
   }  
 
   TUINT32   Value32 
 
};  
 

Detailed Description

Definition at line 17 of file TColor.h.

Constructor & Destructor Documentation

◆ TColor() [1/3]

TColor::TColor ( )
default

◆ TColor() [2/3]

TFORCEINLINE constexpr TColor::TColor ( TUINT32 a_uiColor)
inlineconstexpr

Definition at line 34 of file TColor.h.

35 : Value32( a_uiColor ) {}
TUINT32 Value32
Definition TColor.h:29

◆ TColor() [3/3]

TFORCEINLINE constexpr TColor::TColor ( TUINT8 a_uiR,
TUINT8 a_uiG,
TUINT8 a_uiB,
TUINT8 a_uiA = 255 )
inlineconstexpr

Definition at line 37 of file TColor.h.

38 : R( a_uiR ), G( a_uiG ), B( a_uiB ), A( a_uiA ) {}
TUINT8 A
Definition TColor.h:26
TUINT8 G
Definition TColor.h:24
TUINT8 B
Definition TColor.h:23
TUINT8 R
Definition TColor.h:25

Member Function Documentation

◆ operator=()

TFORCEINLINE TColor & TColor::operator= ( TUINT32 a_uiColor)
inline

Definition at line 40 of file TColor.h.

41 {
42 Value32 = a_uiColor;
43 }

Member Data Documentation

◆ [union]

union { ... } TColor

◆ A

TUINT8 TColor::A

Definition at line 26 of file TColor.h.

◆ B

TUINT8 TColor::B

Definition at line 23 of file TColor.h.

◆ G

TUINT8 TColor::G

Definition at line 24 of file TColor.h.

◆ R

TUINT8 TColor::R

Definition at line 25 of file TColor.h.

◆ Value32

TUINT32 TColor::Value32

Definition at line 29 of file TColor.h.


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