Blender  V2.93
BKE_gpencil_curve.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) 2008, Blender Foundation
17  * This is a new part of Blender
18  */
19 
20 #pragma once
21 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct Main;
31 struct Object;
32 struct Scene;
33 struct bGPDcurve;
34 struct bGPDlayer;
35 struct bGPDstroke;
36 struct bGPdata;
37 
38 void BKE_gpencil_convert_curve(struct Main *bmain,
39  struct Scene *scene,
40  struct Object *ob_gp,
41  struct Object *ob_cu,
42  const bool use_collections,
43  const float scale_thickness,
44  const float sample);
45 
47  const float error_threshold,
48  const float corner_angle,
49  const float stroke_radius);
51  struct bGPDlayer *gpl,
52  struct bGPDstroke *gps);
54  struct bGPDstroke *gps,
55  struct bGPDcurve *gpc);
57  struct bGPDstroke *gps,
58  struct bGPDcurve *gpc);
62  const uint resolution,
63  const bool is_adaptive);
65 void BKE_gpencil_editcurve_subdivide(struct bGPDstroke *gps, const int cuts);
66 
67 #ifdef __cplusplus
68 }
69 #endif
void BKE_gpencil_stroke_editcurve_update(struct bGPdata *gpd, struct bGPDlayer *gpl, struct bGPDstroke *gps)
void BKE_gpencil_convert_curve(struct Main *bmain, struct Scene *scene, struct Object *ob_gp, struct Object *ob_cu, const bool use_collections, const float scale_thickness, const float sample)
void BKE_gpencil_strokes_selected_update_editcurve(struct bGPdata *gpd)
void BKE_gpencil_stroke_update_geometry_from_editcurve(struct bGPDstroke *gps, const uint resolution, const bool is_adaptive)
void BKE_gpencil_stroke_editcurve_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps, struct bGPDcurve *gpc)
void BKE_gpencil_editcurve_stroke_sync_selection(struct bGPdata *gpd, struct bGPDstroke *gps, struct bGPDcurve *gpc)
void BKE_gpencil_editcurve_recalculate_handles(struct bGPDstroke *gps)
void BKE_gpencil_editcurve_subdivide(struct bGPDstroke *gps, const int cuts)
void BKE_gpencil_strokes_selected_sync_selection_editcurve(struct bGPdata *gpd)
struct bGPDcurve * BKE_gpencil_stroke_editcurve_generate(struct bGPDstroke *gps, const float error_threshold, const float corner_angle, const float stroke_radius)
unsigned int uint
Definition: BLI_sys_types.h:83
Scene scene
static void sample(SocketReader *reader, int x, int y, float color[4])
Definition: BKE_main.h:116