Blender  V3.3
MOD_gpencil_util.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct Depsgraph;
11 struct GpencilModifierData;
12 struct MDeformVert;
13 struct Material;
14 struct Object;
15 struct bGPDlayer;
16 struct bGPDframe;
17 struct bGPDstroke;
18 
23  char *mlayername,
24  struct Material *material,
25  int mpassindex,
26  int gpl_passindex,
27  int minpoints,
28  bGPDlayer *gpl,
29  bGPDstroke *gps,
30  bool inv1,
31  bool inv2,
32  bool inv3,
33  bool inv4);
34 
38 float get_modifier_point_weight(struct MDeformVert *dvert, bool inverse, int def_nr);
42 typedef void (*gpBakeCb)(struct GpencilModifierData *md_,
43  struct Depsgraph *depsgraph_,
44  struct Object *ob_,
45  struct bGPDlayer *gpl_,
46  struct bGPDframe *gpf_,
47  struct bGPDstroke *gps_);
48 
50  struct GpencilModifierData *md,
51  struct Object *ob,
52  bool retime,
53  gpBakeCb bake_cb);
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
bool is_stroke_affected_by_modifier(struct Object *ob, char *mlayername, struct Material *material, int mpassindex, int gpl_passindex, int minpoints, bGPDlayer *gpl, bGPDstroke *gps, bool inv1, bool inv2, bool inv3, bool inv4)
void generic_bake_deform_stroke(struct Depsgraph *depsgraph, struct GpencilModifierData *md, struct Object *ob, bool retime, gpBakeCb bake_cb)
float get_modifier_point_weight(struct MDeformVert *dvert, bool inverse, int def_nr)
void(* gpBakeCb)(struct GpencilModifierData *md_, struct Depsgraph *depsgraph_, struct Object *ob_, struct bGPDlayer *gpl_, struct bGPDframe *gpf_, struct bGPDstroke *gps_)
btMatrix3x3 inverse() const
Return the inverse of the matrix.
Definition: btTransform.h:182
Material material
const Depsgraph * depsgraph
SyclQueue void void size_t num_bytes void
struct MDeformVert * dvert