Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Represents a color in Red-Green-Blue space including an alpha component. More...
#include <color4.h>
Public Member Functions | |
aiColor4t () AI_NO_EXCEPT | |
aiColor4t (const aiColor4t &o)=default | |
aiColor4t (TReal _r) | |
aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a) | |
bool | IsBlack () const |
check whether a color is (close to) black More... | |
bool | operator!= (const aiColor4t &other) const |
const aiColor4t & | operator*= (TReal f) |
const aiColor4t & | operator+= (const aiColor4t &o) |
const aiColor4t & | operator-= (const aiColor4t &o) |
const aiColor4t & | operator/= (TReal f) |
bool | operator< (const aiColor4t &other) const |
bool | operator== (const aiColor4t &other) const |
TReal & | operator[] (unsigned int i) |
TReal | operator[] (unsigned int i) const |
Public Attributes | |
TReal | a |
TReal | b |
TReal | g |
TReal | r |
Represents a color in Red-Green-Blue space including an alpha component.
Color values range from 0 to 1.
|
inline |
|
inline |
|
inlineexplicit |
|
default |
|
inline |
check whether a color is (close to) black
AI_FORCE_INLINE bool aiColor4t< TReal >::operator!= | ( | const aiColor4t< TReal > & | other | ) | const |
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator*= | ( | TReal | f | ) |
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator+= | ( | const aiColor4t< TReal > & | o | ) |
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator-= | ( | const aiColor4t< TReal > & | o | ) |
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator/= | ( | TReal | f | ) |
AI_FORCE_INLINE bool aiColor4t< TReal >::operator< | ( | const aiColor4t< TReal > & | other | ) | const |
AI_FORCE_INLINE bool aiColor4t< TReal >::operator== | ( | const aiColor4t< TReal > & | other | ) | const |
|
inline |
|
inline |
TReal aiColor4t< TReal >::a |
TReal aiColor4t< TReal >::b |
TReal aiColor4t< TReal >::g |
TReal aiColor4t< TReal >::r |