Blender
V3.3
|
#include <BLI_color.hh>
Public Member Functions | |
constexpr | ColorTheme4 () |
constexpr | ColorTheme4 (const ChannelStorageType *rgba) |
constexpr | ColorTheme4 (ChannelStorageType r, ChannelStorageType g, ChannelStorageType b, ChannelStorageType a) |
ColorTheme4< float > | to_4f () const |
ColorTheme4< uint8_t > | to_4b () const |
![]() | |
constexpr | ColorRGBA ()=default |
constexpr | ColorRGBA (const ChannelStorageType rgba[4]) |
constexpr | ColorRGBA (const ChannelStorageType r, const ChannelStorageType g, const ChannelStorageType b, const ChannelStorageType a) |
operator ChannelStorageType * () | |
operator const ChannelStorageType * () const | |
uint64_t | hash () const |
Additional Inherited Members | |
![]() | |
ChannelStorageType | r |
ChannelStorageType | g |
ChannelStorageType | b |
ChannelStorageType | a |
Theme color template class.
Don't use directly, but use ColorTheme4b/ColorTheme4b
.
This has been implemented as a template to improve inlining. When implemented as concrete classes (ColorTheme4b/f) the functions would be hidden in a compile unit what wouldn't be inlined.
Definition at line 251 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 253 of file BLI_color.hh.
References blender::Straight, and blender::Theme.
|
inlineconstexpr |
Definition at line 255 of file BLI_color.hh.
References blender::Straight, and blender::Theme.
|
inlineconstexpr |
Definition at line 260 of file BLI_color.hh.
References blender::Straight, and blender::Theme.
|
inline |
Change precision of color to uint8_t.
Definition at line 284 of file BLI_color.hh.
References blender::BLI_color_convert_to_theme4b().
Referenced by blender::tests::TEST().
|
inline |
Change precision of color to float.
Definition at line 271 of file BLI_color.hh.
References blender::BLI_color_convert_to_theme4f().
Referenced by blender::tests::TEST().