|
Blender
V3.3
|
#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BLI_bitmap.h"#include "BLI_ghash.h"#include "BLI_index_range.hh"#include "BLI_math.h"#include "BLI_rand.h"#include "BLI_span.hh"#include "BLI_task.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "BKE_attribute.h"#include "BKE_ccg.h"#include "BKE_mesh.h"#include "BKE_mesh_mapping.h"#include "BKE_paint.h"#include "BKE_pbvh.h"#include "BKE_subdiv_ccg.h"#include "PIL_time.h"#include "GPU_buffers.h"#include "bmesh.h"#include "atomic_ops.h"#include "pbvh_intern.h"#include <climits>Go to the source code of this file.
Namespaces | |
| blender | |
| blender::bke | |
Functions | |
| template<typename Func > | |
| void | blender::bke::to_static_color_type (const eCustomDataType type, const Func &func) |
| template<typename T > | |
| void | blender::bke::to_float (const T &src, float dst[4]) |
| template<> | |
| void | blender::bke::to_float (const MLoopCol &src, float dst[4]) |
| template<> | |
| void | blender::bke::to_float (const MPropCol &src, float dst[4]) |
| template<typename T > | |
| void | blender::bke::from_float (const float src[4], T &dst) |
| template<> | |
| void | blender::bke::from_float (const float src[4], MLoopCol &dst) |
| template<> | |
| void | blender::bke::from_float (const float src[4], MPropCol &dst) |
| template<typename T > | |
| static void | blender::bke::pbvh_vertex_color_get (const PBVH &pbvh, int vertex, float r_color[4]) |
| template<typename T > | |
| static void | blender::bke::pbvh_vertex_color_set (PBVH &pbvh, int vertex, const float color[4]) |
| void | BKE_pbvh_vertex_color_get (const PBVH *pbvh, int vertex, float r_color[4]) |
| void | BKE_pbvh_vertex_color_set (PBVH *pbvh, int vertex, const float color[4]) |
| void | BKE_pbvh_swap_colors (PBVH *pbvh, const int *indices, const int indices_num, float(*r_colors)[4]) |
| void | BKE_pbvh_store_colors (PBVH *pbvh, const int *indices, const int indices_num, float(*r_colors)[4]) |
| void | BKE_pbvh_store_colors_vertex (PBVH *pbvh, const int *indices, const int indices_num, float(*r_colors)[4]) |
| void BKE_pbvh_store_colors | ( | PBVH * | pbvh, |
| const int * | indices, | ||
| const int | indices_num, | ||
| float(*) | r_colors[4] | ||
| ) |
Definition at line 179 of file pbvh.cc.
References PBVH::color_layer, blender::bke::to_static_color_type(), and CustomDataLayer::type.
Referenced by BKE_pbvh_store_colors_vertex(), and sculpt_undo_store_color().
| void BKE_pbvh_store_colors_vertex | ( | PBVH * | pbvh, |
| const int * | indices, | ||
| const int | indices_num, | ||
| float(*) | r_colors[4] | ||
| ) |
Definition at line 193 of file pbvh.cc.
References ATTR_DOMAIN_POINT, BKE_pbvh_store_colors(), PBVH::color_domain, PBVH::color_layer, indices, blender::bke::to_static_color_type(), and CustomDataLayer::type.
Referenced by sculpt_undo_store_color().
| void BKE_pbvh_swap_colors | ( | PBVH * | pbvh, |
| const int * | indices, | ||
| const int | indices_num, | ||
| float(*) | r_colors[4] | ||
| ) |
Definition at line 163 of file pbvh.cc.
References PBVH::color_layer, blender::bke::to_static_color_type(), and CustomDataLayer::type.
Referenced by sculpt_undo_restore_color().
Definition at line 147 of file pbvh.cc.
References PBVH::color_layer, blender::bke::to_static_color_type(), and CustomDataLayer::type.
Referenced by SCULPT_vertex_color_get().
Definition at line 155 of file pbvh.cc.
References PBVH::color_layer, blender::bke::to_static_color_type(), and CustomDataLayer::type.
Referenced by SCULPT_vertex_color_set().