DGLE2   Young, strong and crazy!
Public Types | Public Member Functions | Public Attributes | List of all members
TColor4 Struct Reference

Describes color in engine. More...

#include <DGLE_Types.h>

Public Types

typedef float(& ref )[4]
 
typedef const float(& cref )[4]
 

Public Member Functions

 TColor4 ()
 
 TColor4 (uint32 ui32RGBA)
 
 TColor4 (uint8 ubR, uint8 ubG, uint8 ubB, uint8 ubA)
 
 TColor4 (cref rgba)
 
void SetColorF (float fR, float fG, float fB, float fA)
 
void SetColorB (uint8 ubR, uint8 ubG, uint8 ubB, uint8 ubA)
 
uint32 ColorRGB ()
 
uint32 ColorRGBA ()
 
 operator uint32 ()
 
 operator ref ()
 
 operator cref () const
 

Public Attributes

union {
   struct {
      float   r
 
      float   g
 
      float   b
 
      float   a
 
   } 
 
   float   rgba [4]
 
}; 
 

Detailed Description

Describes color in engine.

Color is four component based. Each component is float, value can vary from 0.0 to 1.0.

Member Typedef Documentation

typedef const float(& cref)[4]
typedef float(& ref)[4]

Constructor & Destructor Documentation

TColor4 ( )
inline
TColor4 ( uint32  ui32RGBA)
inline
TColor4 ( uint8  ubR,
uint8  ubG,
uint8  ubB,
uint8  ubA 
)
inline
TColor4 ( cref  rgba)
inline

Member Function Documentation

uint32 ColorRGB ( )
inline
uint32 ColorRGBA ( )
inline
operator cref ( ) const
inline
operator ref ( )
inline
operator uint32 ( )
inline
void SetColorB ( uint8  ubR,
uint8  ubG,
uint8  ubB,
uint8  ubA 
)
inline
void SetColorF ( float  fR,
float  fG,
float  fB,
float  fA 
)
inline

Member Data Documentation

union { ... }
float a
float b
float g
float r
float rgba[4]

Sun Nov 16 2014 09:47:30   Generated by   doxygen   Content copyrighted to DGLE Team