|
Blender V4.3
|
#include <BKE_attribute_math.hh>
Public Member Functions | |
| ColorGeometry4fMixer (MutableSpan< ColorGeometry4f > buffer, ColorGeometry4f default_color=ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f)) | |
| ColorGeometry4fMixer (MutableSpan< ColorGeometry4f > buffer, const IndexMask &mask, ColorGeometry4f default_color=ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f)) | |
| void | set (int64_t index, const ColorGeometry4f &color, float weight=1.0f) |
| void | mix_in (int64_t index, const ColorGeometry4f &color, float weight=1.0f) |
| void | finalize () |
| void | finalize (const IndexMask &mask) |
Definition at line 478 of file BKE_attribute_math.hh.
| blender::bke::attribute_math::ColorGeometry4fMixer::ColorGeometry4fMixer | ( | MutableSpan< ColorGeometry4f > | buffer, |
| ColorGeometry4f | default_color = ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f) ) |
Definition at line 78 of file attribute_math.cc.
| blender::bke::attribute_math::ColorGeometry4fMixer::ColorGeometry4fMixer | ( | MutableSpan< ColorGeometry4f > | buffer, |
| const IndexMask & | mask, | ||
| ColorGeometry4f | default_color = ColorGeometry4f(0.0f, 0.0f, 0.0f, 1.0f) ) |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 84 of file attribute_math.cc.
| void blender::bke::attribute_math::ColorGeometry4fMixer::finalize | ( | ) |
| void blender::bke::attribute_math::ColorGeometry4fMixer::finalize | ( | const IndexMask & | mask | ) |
Definition at line 121 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::ColorGeometry4fMixer::mix_in | ( | int64_t | index, |
| const ColorGeometry4f & | color, | ||
| float | weight = 1.0f ) |
Definition at line 104 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::ColorGeometry4fMixer::set | ( | int64_t | index, |
| const ColorGeometry4f & | color, | ||
| float | weight = 1.0f ) |
Definition at line 93 of file attribute_math.cc.