Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Faro::IColor< T, TMax > Struct Template Reference

#include <Color.hpp>

Public Member Functions

 IColor (T r, T g, T b, T a=TMax)
 
 IColor (float color[4])
 
 IColor ()
 
IColor operator+ (IColor &other)
 
IColor operator+ (IColor other)
 
IColor operator- (IColor &other)
 
IColor operator- (IColor other)
 
IColor Lerp (IColor &other, float time) const
 

Static Public Member Functions

static IColor FromHex (String hex)
 

Public Attributes

union { 
 
   T   d [4] 
 
   struct { 
 
      T   r 
 
      T   g 
 
      T   b 
 
      T   a 
 
   }  
 
};  
 

Static Public Attributes

static IColor Red = IColor<T, TMax>(TMax, 0, 0, TMax)
 
static IColor Green = IColor<T, TMax>(0, TMax, 0, TMax)
 
static IColor Blue = IColor<T, TMax>(0, 0, TMax, TMax)
 
static IColor White = IColor<T, TMax>(TMax, TMax, TMax, TMax)
 
static IColor Black = IColor<T, TMax>(0, 0, 0, TMax)
 
static IColor Clear = IColor<T, TMax>(0, 0, 0, 0)
 

Constructor & Destructor Documentation

◆ IColor() [1/3]

template<class T , int TMax>
Faro::IColor< T, TMax >::IColor ( r,
g,
b,
a = TMax 
)
inline

◆ IColor() [2/3]

template<class T , int TMax>
Faro::IColor< T, TMax >::IColor ( float  color[4])
inline

◆ IColor() [3/3]

template<class T , int TMax>
Faro::IColor< T, TMax >::IColor ( )
inline

Member Function Documentation

◆ FromHex()

template<class T , int TMax>
static IColor Faro::IColor< T, TMax >::FromHex ( String  hex)
inlinestatic

◆ Lerp()

template<class T , int TMax>
IColor Faro::IColor< T, TMax >::Lerp ( IColor< T, TMax > &  other,
float  time 
) const
inline

◆ operator+() [1/2]

template<class T , int TMax>
IColor Faro::IColor< T, TMax >::operator+ ( IColor< T, TMax > &  other)
inline

◆ operator+() [2/2]

template<class T , int TMax>
IColor Faro::IColor< T, TMax >::operator+ ( IColor< T, TMax >  other)
inline

◆ operator-() [1/2]

template<class T , int TMax>
IColor Faro::IColor< T, TMax >::operator- ( IColor< T, TMax > &  other)
inline

◆ operator-() [2/2]

template<class T , int TMax>
IColor Faro::IColor< T, TMax >::operator- ( IColor< T, TMax >  other)
inline

Member Data Documentation

◆ [union]

union { ... } Faro::IColor< T, TMax >

◆ a

template<class T , int TMax>
T Faro::IColor< T, TMax >::a

◆ b

template<class T , int TMax>
T Faro::IColor< T, TMax >::b

◆ Black

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::Black = IColor<T, TMax>(0, 0, 0, TMax)
static

◆ Blue

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::Blue = IColor<T, TMax>(0, 0, TMax, TMax)
static

◆ Clear

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::Clear = IColor<T, TMax>(0, 0, 0, 0)
static

◆ d

template<class T , int TMax>
T Faro::IColor< T, TMax >::d[4]

◆ g

template<class T , int TMax>
T Faro::IColor< T, TMax >::g

◆ Green

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::Green = IColor<T, TMax>(0, TMax, 0, TMax)
static

◆ r

template<class T , int TMax>
T Faro::IColor< T, TMax >::r

◆ Red

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::Red = IColor<T, TMax>(TMax, 0, 0, TMax)
static

◆ White

template<class T , int TMax>
IColor< T, TMax > Faro::IColor< T, TMax >::White = IColor<T, TMax>(TMax, TMax, TMax, TMax)
static

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