DDraceNetwork Documentation
Loading...
Searching...
No Matches
color4_base< DerivedT > Class Template Reference

#include <color.h>

Public Member Functions

constexpr color4_base ()
constexpr color4_base (float nx, float ny, float nz, float na)
constexpr color4_base (float nx, float ny, float nz)
constexpr color4_base (unsigned col, bool alpha=false)
template<typename OtherDerivedT>
 color4_base (const color4_base< OtherDerivedT > &Other)=delete
constexpr float & operator[] (int index)
constexpr bool operator== (const color4_base &col) const
constexpr bool operator!= (const color4_base &col) const
constexpr unsigned Pack (bool Alpha=true) const
constexpr unsigned PackAlphaLast (bool Alpha=true) const
constexpr DerivedT WithAlpha (float alpha) const
constexpr DerivedT WithMultipliedAlpha (float alpha) const

Static Public Member Functions

template<typename UnpackT>
static constexpr UnpackT UnpackAlphaLast (unsigned Color, bool Alpha=true)

Public Attributes

union { 
   float   x 
   float   r 
   float   h 
}; 
union { 
   float   y 
   float   g 
   float   s 
}; 
union { 
   float   z 
   float   b 
   float   l 
   float   v 
}; 
union { 
   float   w 
   float   a 
}; 

Constructor & Destructor Documentation

◆ color4_base() [1/5]

template<typename DerivedT>
color4_base< DerivedT >::color4_base ( )
inlineconstexpr

◆ color4_base() [2/5]

template<typename DerivedT>
color4_base< DerivedT >::color4_base ( float nx,
float ny,
float nz,
float na )
inlineconstexpr

◆ color4_base() [3/5]

template<typename DerivedT>
color4_base< DerivedT >::color4_base ( float nx,
float ny,
float nz )
inlineconstexpr

◆ color4_base() [4/5]

template<typename DerivedT>
color4_base< DerivedT >::color4_base ( unsigned col,
bool alpha = false )
inlineconstexpr

◆ color4_base() [5/5]

template<typename DerivedT>
template<typename OtherDerivedT>
color4_base< DerivedT >::color4_base ( const color4_base< OtherDerivedT > & Other)
delete

Member Function Documentation

◆ operator!=()

template<typename DerivedT>
bool color4_base< DerivedT >::operator!= ( const color4_base< DerivedT > & col) const
inlineconstexpr

◆ operator==()

template<typename DerivedT>
bool color4_base< DerivedT >::operator== ( const color4_base< DerivedT > & col) const
inlineconstexpr

◆ operator[]()

template<typename DerivedT>
float & color4_base< DerivedT >::operator[] ( int index)
inlineconstexpr

◆ Pack()

template<typename DerivedT>
unsigned color4_base< DerivedT >::Pack ( bool Alpha = true) const
inlineconstexpr

◆ PackAlphaLast()

template<typename DerivedT>
unsigned color4_base< DerivedT >::PackAlphaLast ( bool Alpha = true) const
inlineconstexpr

◆ UnpackAlphaLast()

template<typename DerivedT>
template<typename UnpackT>
constexpr UnpackT color4_base< DerivedT >::UnpackAlphaLast ( unsigned Color,
bool Alpha = true )
inlinestaticconstexpr

◆ WithAlpha()

template<typename DerivedT>
DerivedT color4_base< DerivedT >::WithAlpha ( float alpha) const
inlineconstexpr

◆ WithMultipliedAlpha()

template<typename DerivedT>
DerivedT color4_base< DerivedT >::WithMultipliedAlpha ( float alpha) const
inlineconstexpr

Member Data Documentation

◆ [union]

union { ... } color4_base< DerivedT >

◆ [union]

union { ... } color4_base< DerivedT >

◆ [union]

union { ... } color4_base< DerivedT >

◆ [union]

union { ... } color4_base< DerivedT >

◆ a

template<typename DerivedT>
float color4_base< DerivedT >::a

◆ b

template<typename DerivedT>
float color4_base< DerivedT >::b

◆ g

template<typename DerivedT>
float color4_base< DerivedT >::g

◆ h

template<typename DerivedT>
float color4_base< DerivedT >::h

◆ l

template<typename DerivedT>
float color4_base< DerivedT >::l

◆ r

template<typename DerivedT>
float color4_base< DerivedT >::r

◆ s

template<typename DerivedT>
float color4_base< DerivedT >::s

◆ v

template<typename DerivedT>
float color4_base< DerivedT >::v

◆ w

template<typename DerivedT>
float color4_base< DerivedT >::w

◆ x

template<typename DerivedT>
float color4_base< DerivedT >::x

◆ y

template<typename DerivedT>
float color4_base< DerivedT >::y

◆ z

template<typename DerivedT>
float color4_base< DerivedT >::z

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