|
Blender V4.3
|
#include <BKE_attribute_math.hh>
Public Member Functions | |
| ColorGeometry4bMixer (MutableSpan< ColorGeometry4b > buffer, ColorGeometry4b default_color=ColorGeometry4b(0, 0, 0, 255)) | |
| ColorGeometry4bMixer (MutableSpan< ColorGeometry4b > buffer, const IndexMask &mask, ColorGeometry4b default_color=ColorGeometry4b(0, 0, 0, 255)) | |
| void | set (int64_t index, const ColorGeometry4b &color, float weight=1.0f) |
| void | mix_in (int64_t index, const ColorGeometry4b &color, float weight=1.0f) |
| void | finalize () |
| void | finalize (const IndexMask &mask) |
Definition at line 499 of file BKE_attribute_math.hh.
| blender::bke::attribute_math::ColorGeometry4bMixer::ColorGeometry4bMixer | ( | MutableSpan< ColorGeometry4b > | buffer, |
| ColorGeometry4b | default_color = ColorGeometry4b(0, 0, 0, 255) ) |
Definition at line 139 of file attribute_math.cc.
| blender::bke::attribute_math::ColorGeometry4bMixer::ColorGeometry4bMixer | ( | MutableSpan< ColorGeometry4b > | buffer, |
| const IndexMask & | mask, | ||
| ColorGeometry4b | default_color = ColorGeometry4b(0, 0, 0, 255) ) |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 145 of file attribute_math.cc.
| void blender::bke::attribute_math::ColorGeometry4bMixer::finalize | ( | ) |
| void blender::bke::attribute_math::ColorGeometry4bMixer::finalize | ( | const IndexMask & | mask | ) |
Definition at line 183 of file attribute_math.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
| void blender::bke::attribute_math::ColorGeometry4bMixer::mix_in | ( | int64_t | index, |
| const ColorGeometry4b & | color, | ||
| float | weight = 1.0f ) |
Definition at line 168 of file attribute_math.cc.
References blender::VecBase< T, Size >::b.
| void blender::bke::attribute_math::ColorGeometry4bMixer::set | ( | int64_t | index, |
| const ColorGeometry4b & | color, | ||
| float | weight = 1.0f ) |