Blender V5.3
gpencil_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_vec_types.h"
12
13namespace blender {
14
15#define DEPTH_INVALID 1.0f
16
17/* internal exports only */
18struct Material;
19struct bGPDspoint;
20struct bGPDstroke;
21struct bGPdata;
22struct tGPspoint;
23
24struct RNG;
25
26struct ARegion;
27struct Brush;
28struct Depsgraph;
29struct Scene;
30struct View2D;
31struct View3D;
32struct ViewDepths;
33struct wmOperatorType;
34struct wmWindow;
35
36struct Object;
37struct ScrArea;
38struct bGPDlayer;
39
40struct EnumPropertyItem;
41struct PointerRNA;
42struct PropertyRNA;
43
44/* ***************************************************** */
45/* Internal API */
46
47/* Stroke Coordinates API ------------------------------ */
48/* `gpencil_utils.cc` */
49
55
59
60 const rctf *subrect; /* for using the camera rect within the 3d view */
62
63 float mat[4][4]; /* transform matrix on the strokes (introduced in [b770964]) */
64};
65
75bool gpencil_stroke_inside_circle(const float mval[2], int rad, int x0, int y0, int x1, int y1);
76
87 const bGPDstroke *gps,
88 const bGPDspoint *pt,
89 int *r_x,
90 int *r_y);
91
92/* Copy/Paste Buffer --------------------------------- */
93/* `gpencil_edit.cc` */
94
95/* ***************************************************** */
96/* Operator Defines */
97
98/* annotations ------ */
99
107
108/* Paint Modes for operator */
116
117/* chunk size for gp-session buffer (the total size is a multiple of this number) */
118#define GP_STROKE_BUFFER_CHUNK 2048
119
120} // namespace blender
Definition scene.h:133
BMesh Iterators.
void GPENCIL_OT_layer_annotation_move(wmOperatorType *ot)
void GPENCIL_OT_data_unlink(wmOperatorType *ot)
bool gpencil_stroke_inside_circle(const float mval[2], int rad, int x0, int y0, int x1, int y1)
void GPENCIL_OT_annotation_active_frame_delete(wmOperatorType *ot)
void GPENCIL_OT_layer_annotation_add(wmOperatorType *ot)
void GPENCIL_OT_annotate(wmOperatorType *ot)
void gpencil_point_to_xy(const GP_SpaceConversion *gsc, const bGPDstroke *gps, const bGPDspoint *pt, int *r_x, int *r_y)
void GPENCIL_OT_layer_annotation_remove(wmOperatorType *ot)
void GPENCIL_OT_annotation_add(wmOperatorType *ot)
@ GP_PAINTMODE_DRAW_STRAIGHT
@ GP_PAINTMODE_DRAW_POLY