DDNet documentation
Loading...
Searching...
No Matches
color4_base< DerivedT > Class Template Reference

#include <color.h>

Classes

union  [union].__unnamed0__
union  [union].__unnamed1__
union  [union].__unnamed2__
union  [union].__unnamed3__

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>
requires (!std::is_same_v<DerivedT, 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  
union  
union  
union  

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>
requires (!std::is_same_v<DerivedT, 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

◆ @114340352374350262352223002355376130313153162017

◆ @167371165251216136316177230064325272045221106310

◆ @224031360240275027231122117315370371073340000255

◆ @231055376145163025207215062147115360022026204116


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