![]() |
DDNet documentation
|
#include <color.h>
Public Member Functions | |
| constexpr | ColorRGBA ()=default |
| constexpr ColorRGBA | Multiply (const ColorRGBA &Other) const |
| template<Numeric T> | |
| constexpr ColorRGBA | Multiply (const T &Factor) const |
| 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 | |
| Public Member Functions inherited from color4_base< ColorRGBA > | |
| constexpr | color4_base () |
| 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 ColorRGBA | WithAlpha (float alpha) const |
| constexpr ColorRGBA | WithMultipliedAlpha (float alpha) const |
Additional Inherited Members | |
| Static Public Member Functions inherited from color4_base< ColorRGBA > | |
| static constexpr UnpackT | UnpackAlphaLast (unsigned Color, bool Alpha=true) |
| Public Attributes inherited from color4_base< ColorRGBA > | |
| union color4_base:: { ... } | |
| union color4_base:: { ... } | |
| union color4_base:: { ... } | |
| union color4_base:: { ... } | |
|
constexprdefault |
|
inlineconstexpr |
|
delete |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |