OpenBarnyard
 
Loading...
Searching...
No Matches
TColor.h File Reference
#include "Toshi/Typedefs.h"

Go to the source code of this file.

Classes

struct  TColor
 

Macros

#define TCOLOR(R, G, B)
 
#define TCOLOR_ALPHA(R, G, B, A)
 
#define TCOLOR_GET_ALPHA(COLOR)
 
#define TCOLOR_GET_RED(COLOR)
 
#define TCOLOR_GET_GREEN(COLOR)
 
#define TCOLOR_GET_BLUE(COLOR)
 
#define TCOLOR_GET_A(COLOR)
 
#define TCOLOR_GET_R(COLOR)
 
#define TCOLOR_GET_G(COLOR)
 
#define TCOLOR_GET_B(COLOR)
 

Functions

 TSTATICASSERT (sizeof(TColor)==4)
 

Macro Definition Documentation

◆ TCOLOR

#define TCOLOR ( R,
G,
B )
Value:
( ( ( ( R & 0xff ) << 8 | G & 0xff ) << 8 | B & 0xff ) | 0xFF000000 )

Definition at line 4 of file TColor.h.

◆ TCOLOR_ALPHA

#define TCOLOR_ALPHA ( R,
G,
B,
A )
Value:
( ( ( ( R & 0xff ) << 8 | G & 0xff ) << 8 | B & 0xff ) | ( TUINT32( A ) << 24 ) )
uint32_t TUINT32
Definition Typedefs.h:13

Definition at line 5 of file TColor.h.

◆ TCOLOR_GET_A

#define TCOLOR_GET_A ( COLOR)
Value:
#define TCOLOR_GET_ALPHA(COLOR)
Definition TColor.h:6

Definition at line 10 of file TColor.h.

◆ TCOLOR_GET_ALPHA

#define TCOLOR_GET_ALPHA ( COLOR)
Value:
( ( COLOR >> 24 ) & 0xff )

Definition at line 6 of file TColor.h.

◆ TCOLOR_GET_B

#define TCOLOR_GET_B ( COLOR)
Value:
#define TCOLOR_GET_BLUE(COLOR)
Definition TColor.h:9

Definition at line 13 of file TColor.h.

◆ TCOLOR_GET_BLUE

#define TCOLOR_GET_BLUE ( COLOR)
Value:
( COLOR & 0xff )

Definition at line 9 of file TColor.h.

◆ TCOLOR_GET_G

#define TCOLOR_GET_G ( COLOR)
Value:
#define TCOLOR_GET_GREEN(COLOR)
Definition TColor.h:8

Definition at line 12 of file TColor.h.

◆ TCOLOR_GET_GREEN

#define TCOLOR_GET_GREEN ( COLOR)
Value:
( ( COLOR >> 8 ) & 0xff )

Definition at line 8 of file TColor.h.

◆ TCOLOR_GET_R

#define TCOLOR_GET_R ( COLOR)
Value:
#define TCOLOR_GET_RED(COLOR)
Definition TColor.h:7

Definition at line 11 of file TColor.h.

◆ TCOLOR_GET_RED

#define TCOLOR_GET_RED ( COLOR)
Value:
( ( COLOR >> 16 ) & 0xff )

Definition at line 7 of file TColor.h.

Function Documentation

◆ TSTATICASSERT()

TSTATICASSERT ( sizeof(TColor) = =4)