Blender
V3.3
|
#include <BLI_color.hh>
Public Member Functions | |
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 |
Public Attributes | |
ChannelStorageType | r |
ChannelStorageType | g |
ChannelStorageType | b |
ChannelStorageType | a |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const ColorRGBA< ChannelStorageType, Space, Alpha > &c) |
bool | operator== (const ColorRGBA< ChannelStorageType, Space, Alpha > &a, const ColorRGBA< ChannelStorageType, Space, Alpha > &b) |
bool | operator!= (const ColorRGBA< ChannelStorageType, Space, Alpha > &a, const ColorRGBA< ChannelStorageType, Space, Alpha > &b) |
Template class to store RGBA values with different precision, space, and alpha association.
Definition at line 83 of file BLI_color.hh.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 88 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 93 of file BLI_color.hh.
|
inline |
Definition at line 131 of file BLI_color.hh.
|
inline |
Definition at line 101 of file BLI_color.hh.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
|
inline |
Definition at line 106 of file BLI_color.hh.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
|
friend |
Definition at line 125 of file BLI_color.hh.
|
friend |
Definition at line 111 of file BLI_color.hh.
|
friend |
Definition at line 119 of file BLI_color.hh.
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a |
Definition at line 85 of file BLI_color.hh.
Referenced by blender::ed::spreadsheet::apply_row_filter(), blender::ColorSceneLinear4f< Alpha >::ColorSceneLinear4f(), blender::draw::AttributeTypeConverter< ColorGeometry4b, gpuMeshCol >::convert_value(), blender::attribute_math::ColorGeometry4fMixer::finalize(), blender::attribute_math::ColorGeometry4bMixer::finalize(), blender::nodes::get_multi_function(), blender::attribute_math::ColorGeometry4fMixer::mix_in(), and blender::tests::TEST().
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b |
Definition at line 85 of file BLI_color.hh.
Referenced by blender::ed::spreadsheet::apply_row_filter(), blender::ColorSceneLinear4f< Alpha >::ColorSceneLinear4f(), blender::draw::AttributeTypeConverter< ColorGeometry4b, gpuMeshCol >::convert_value(), blender::attribute_math::ColorGeometry4fMixer::finalize(), blender::attribute_math::ColorGeometry4bMixer::finalize(), blender::nodes::get_multi_function(), blender::attribute_math::ColorGeometry4fMixer::mix_in(), and blender::tests::TEST().
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g |
Definition at line 85 of file BLI_color.hh.
Referenced by blender::ed::spreadsheet::apply_row_filter(), blender::ColorSceneLinear4f< Alpha >::ColorSceneLinear4f(), blender::draw::AttributeTypeConverter< ColorGeometry4b, gpuMeshCol >::convert_value(), blender::attribute_math::ColorGeometry4fMixer::finalize(), blender::attribute_math::ColorGeometry4bMixer::finalize(), blender::nodes::get_multi_function(), blender::attribute_math::ColorGeometry4fMixer::mix_in(), and blender::tests::TEST().
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r |
Definition at line 85 of file BLI_color.hh.
Referenced by blender::ed::spreadsheet::apply_row_filter(), blender::ColorSceneLinear4f< Alpha >::ColorSceneLinear4f(), blender::draw::AttributeTypeConverter< ColorGeometry4b, gpuMeshCol >::convert_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::attribute_math::ColorGeometry4fMixer::finalize(), blender::attribute_math::ColorGeometry4bMixer::finalize(), blender::nodes::get_multi_function(), blender::attribute_math::mix3(), blender::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator ChannelStorageType *(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator const ChannelStorageType *(), paint_and_tex_color_alpha(), and blender::tests::TEST().