Blender V5.0
BKE_gpencil_geom_legacy.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11struct Object;
12struct bGPDframe;
13struct bGPDspoint;
14struct bGPDstroke;
15struct bGPdata;
16
17/* Stroke geometry utilities. */
18
27void BKE_gpencil_stroke_2d_flat(const struct bGPDspoint *points,
28 int totpoints,
29 float (*points2d)[2],
30 int *r_direction);
41void BKE_gpencil_stroke_geometry_update(struct bGPdata *gpd, struct bGPDstroke *gps);
47
54 struct bGPDframe *gpf,
55 struct bGPDstroke *gps,
56 struct bGPDstroke *next_stroke,
57 int tag_flags,
58 bool select,
59 bool flat_cap,
60 int limit);
void BKE_gpencil_stroke_fill_triangulate(struct bGPDstroke *gps)
void BKE_gpencil_stroke_2d_flat(const struct bGPDspoint *points, int totpoints, float(*points2d)[2], int *r_direction)
void BKE_gpencil_stroke_geometry_update(struct bGPdata *gpd, struct bGPDstroke *gps)
void BKE_gpencil_stroke_uv_update(struct bGPDstroke *gps)
struct bGPDstroke * BKE_gpencil_stroke_delete_tagged_points(struct bGPdata *gpd, struct bGPDframe *gpf, struct bGPDstroke *gps, struct bGPDstroke *next_stroke, int tag_flags, bool select, bool flat_cap, int limit)
#define select(A, B, C)