|
Blender V4.5
|
#include <BLI_color.hh>
Inherits blender::ColorRGBA< float, eSpace::SceneLinear, Alpha >.
Public Member Functions | |
| constexpr | ColorSceneLinear4f ()=default |
| constexpr | ColorSceneLinear4f (const float *rgba) |
| constexpr | ColorSceneLinear4f (float r, float g, float b, float a) |
| ColorSceneLinearByteEncoded4b< Alpha > | encode () const |
| ColorSceneLinear4f< eAlpha::Premultiplied > | premultiply_alpha () const |
| ColorSceneLinear4f< eAlpha::Straight > | unpremultiply_alpha () const |
| Public Member Functions inherited from blender::ColorRGBA< float, eSpace::SceneLinear, Alpha > | |
| constexpr | ColorRGBA ()=default |
| operator float * () | |
| operator const float * () const | |
| uint64_t | hash () const |
Additional Inherited Members | |
| Public Attributes inherited from blender::ColorRGBA< float, eSpace::SceneLinear, Alpha > | |
| float | r |
| float | g |
| float | b |
| float | a |
Definition at line 151 of file BLI_color.hh.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 155 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 160 of file BLI_color.hh.
|
inline |
Convert to its byte encoded counterpart.
Definition at line 168 of file BLI_color.hh.
Referenced by blender::bke::bool_to_byte_color(), blender::bke::color_to_byte_color(), blender::gpu::convert(), blender::bke::float2_to_byte_color(), blender::bke::float3_to_byte_color(), blender::bke::float4_to_byte_color(), blender::bke::float_to_byte_color(), fromFloat(), blender::bke::int2_to_byte_color(), blender::bke::int8_to_byte_color(), blender::bke::int_to_byte_color(), blender::ed::geometry::rna_property_for_attribute_type_retrieve_value(), blender::bke::short2_to_byte_color(), and blender::tests::TEST().
|
inline |
Convert color and alpha association to premultiplied alpha.
Does nothing when color already has a premultiplied alpha.
Definition at line 180 of file BLI_color.hh.
Referenced by blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Convert color and alpha association to straight alpha.
Does nothing when color has straight alpha.
Definition at line 197 of file BLI_color.hh.
Referenced by blender::tests::TEST(), blender::tests::TEST(), and blender::tests::TEST().