Blender  V2.93
data_transfer_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2014 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "BKE_customdata.h" /* For cd_datatransfer_interp */
27 
28 struct CustomData;
30 struct ListBase;
31 
32 float data_transfer_interp_float_do(const int mix_mode,
33  const float val_dst,
34  const float val_src,
35  const float mix_factor);
36 
38  const int data_type,
39  const int mix_mode,
40  const float mix_factor,
41  const float *mix_weights,
42  const void *data_src,
43  void *data_dst,
44  const int data_src_n,
45  const int data_dst_n,
46  const size_t elem_size,
47  const size_t data_size,
48  const size_t data_offset,
49  const uint64_t data_flag,
51  void *interp_data);
52 
53 /* Type-specific. */
54 
56  const int mix_mode,
57  const float mix_factor,
58  const float *mix_weights,
59  const int num_elem_dst,
60  const bool use_create,
61  const bool use_delete,
62  struct Object *ob_src,
63  struct Object *ob_dst,
64  struct CustomData *cd_src,
65  struct CustomData *cd_dst,
66  const bool use_dupref_dst,
67  const int fromlayers,
68  const int tolayers);
69 
70 /* Defined in customdata.c */
72  void *data_dst,
73  const void **sources,
74  const float *weights,
75  const int count,
76  const float mix_factor);
CustomData interface, see also DNA_customdata_types.h.
void(* cd_datatransfer_interp)(const struct CustomDataTransferLayerMap *laymap, void *dest, const void **sources, const float *weights, const int count, const float mix_factor)
void customdata_data_transfer_interp_normal_normals(const CustomDataTransferLayerMap *laymap, void *data_dst, const void **sources, const float *weights, const int count, const float mix_factor)
Definition: customdata.c:4924
bool data_transfer_layersmapping_vgroups(struct ListBase *r_map, const int mix_mode, const float mix_factor, const float *mix_weights, const int num_elem_dst, const bool use_create, const bool use_delete, struct Object *ob_src, struct Object *ob_dst, struct CustomData *cd_src, struct CustomData *cd_dst, const bool use_dupref_dst, const int fromlayers, const int tolayers)
Definition: deform.c:1308
float data_transfer_interp_float_do(const int mix_mode, const float val_dst, const float val_src, const float mix_factor)
void data_transfer_layersmapping_add_item(struct ListBase *r_map, const int data_type, const int mix_mode, const float mix_factor, const float *mix_weights, const void *data_src, void *data_dst, const int data_src_n, const int data_dst_n, const size_t elem_size, const size_t data_size, const size_t data_offset, const uint64_t data_flag, cd_datatransfer_interp interp, void *interp_data)
int count
unsigned __int64 uint64_t
Definition: stdint.h:93
ccl_device_inline float2 interp(const float2 &a, const float2 &b, float t)