Blender  V2.93
ED_gpencil.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 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ID;
31 struct ListBase;
32 struct PointerRNA;
33 
34 struct Brush;
35 struct GP_SpaceConversion;
36 struct GpRandomSettings;
37 struct bGPDframe;
38 struct bGPDlayer;
39 struct bGPDspoint;
40 struct bGPDstroke;
41 struct bGPdata;
42 struct tGPspoint;
43 
44 struct ARegion;
45 struct Depsgraph;
46 struct Main;
47 struct RegionView3D;
48 struct ReportList;
49 struct Scene;
50 struct ScrArea;
51 struct SnapObjectContext;
52 struct ToolSettings;
53 struct View3D;
54 struct bContext;
55 
56 struct Material;
57 struct Object;
58 
59 struct KeyframeEditData;
60 struct bAnimContext;
61 
62 struct wmKeyConfig;
63 struct wmOperator;
64 
65 #define GPENCIL_MINIMUM_JOIN_DIST 20.0f
66 
67 /* Reproject stroke modes. */
68 typedef enum eGP_ReprojectModes {
69  /* Axis */
73  /* On same plane, parallel to view-plane. */
75  /* Reprojected on to the scene geometry */
77  /* Reprojected on 3D cursor orientation */
79  /* Keep equals (used in some operators) */
82 
83 /* Target object modes. */
84 typedef enum eGP_TargetObjectMode {
88 
89 /* ------------- Grease-Pencil Runtime Data ---------------- */
90 
91 /* Temporary 'Stroke Point' data (2D / screen-space)
92  *
93  * Used as part of the 'stroke cache' used during drawing of new strokes
94  */
95 typedef struct tGPspoint {
97  float x, y;
99  float pressure;
101  float strength;
103  float time;
105  float uv_fac;
107  float uv_rot;
109  float rnd[3];
111  bool rnd_dirty;
113  float vert_color[4];
115 
116 /* ----------- Grease Pencil Tools/Context ------------- */
117 
118 /* Context-dependent */
119 struct bGPdata **ED_gpencil_data_get_pointers(const struct bContext *C, struct PointerRNA *r_ptr);
120 
123 
124 /* Context independent (i.e. each required part is passed in instead) */
126  struct Object *ob,
127  struct PointerRNA *r_ptr);
128 struct bGPdata *ED_gpencil_data_get_active_direct(struct ScrArea *area, struct Object *ob);
129 
132  struct PointerRNA *r_ptr);
133 struct bGPdata **ED_annotation_data_get_pointers_direct(struct ID *screen_id,
134  struct ScrArea *area,
135  struct Scene *scene,
136  struct PointerRNA *r_ptr);
137 struct bGPdata *ED_annotation_data_get_active_direct(struct ID *screen_id,
138  struct ScrArea *area,
139  struct Scene *scene);
140 
141 bool ED_gpencil_data_owner_is_annotation(struct PointerRNA *owner_ptr);
142 
143 /* 3D View */
144 bool ED_gpencil_has_keyframe_v3d(struct Scene *scene, struct Object *ob, int cfra);
145 
146 /* ----------- Stroke Editing Utilities ---------------- */
148 bool ED_gpencil_layer_has_selected_stroke(const struct bGPDlayer *gpl, const bool is_multiedit);
149 
150 bool ED_gpencil_stroke_can_use_direct(const struct ScrArea *area, const struct bGPDstroke *gps);
151 bool ED_gpencil_stroke_can_use(const struct bContext *C, const struct bGPDstroke *gps);
153  const struct bGPDlayer *gpl,
154  const struct bGPDstroke *gps);
155 bool ED_gpencil_stroke_material_visible(struct Object *ob, const struct bGPDstroke *gps);
156 
157 /* ----------- Grease Pencil Operators ----------------- */
158 
159 void ED_keymap_gpencil(struct wmKeyConfig *keyconf);
160 
161 void ED_operatortypes_gpencil(void);
162 void ED_operatormacros_gpencil(void);
163 
164 /* ------------- Copy-Paste Buffers -------------------- */
165 
166 /* Strokes copybuf */
168 
169 /* ------------ Grease-Pencil Drawing API ------------------ */
170 /* drawgpencil.c */
171 
173 void ED_annotation_draw_view2d(const struct bContext *C, bool onlyv2d);
175  struct Depsgraph *depsgraph,
176  struct View3D *v3d,
177  struct ARegion *region,
178  bool only3d);
179 void ED_annotation_draw_ex(struct Scene *scene,
180  struct bGPdata *gpd,
181  int winx,
182  int winy,
183  const int cfra,
184  const char spacetype);
185 
186 /* ----------- Grease-Pencil AnimEdit API ------------------ */
188  struct Scene *scene,
189  bool (*gpf_cb)(struct bGPDframe *, struct Scene *));
190 void ED_gpencil_layer_make_cfra_list(struct bGPDlayer *gpl, ListBase *elems, bool onlysel);
191 
193 void ED_gpencil_layer_frame_select_set(struct bGPDlayer *gpl, short mode);
195  float min,
196  float max,
197  short select_mode);
199  struct bGPDlayer *gpl,
200  short tool,
201  short select_mode);
202 void ED_gpencil_select_frames(struct bGPDlayer *gpl, short select_mode);
203 void ED_gpencil_select_frame(struct bGPDlayer *gpl, int selx, short select_mode);
204 
205 bool ED_gpencil_layer_frames_delete(struct bGPDlayer *gpl);
207 
208 void ED_gpencil_layer_frames_keytype_set(struct bGPDlayer *gpl, short type);
209 
210 void ED_gpencil_layer_snap_frames(struct bGPDlayer *gpl, struct Scene *scene, short mode);
211 void ED_gpencil_layer_mirror_frames(struct bGPDlayer *gpl, struct Scene *scene, short mode);
212 
215 bool ED_gpencil_anim_copybuf_paste(struct bAnimContext *ac, const short copy_mode);
216 
217 /* ------------ Grease-Pencil Undo System ------------------ */
218 int ED_gpencil_session_active(void);
219 int ED_undo_gpencil_step(struct bContext *C, const int step); /* eUndoStepDir. */
220 
221 /* ------------ Grease-Pencil Armature ------------------ */
222 bool ED_gpencil_add_armature(const struct bContext *C,
223  struct ReportList *reports,
224  struct Object *ob,
225  struct Object *ob_arm);
227  struct ReportList *reports,
228  struct Object *ob,
229  struct Object *ob_arm,
230  int mode);
231 
232 /* Add Lattice modifier using Parent operator */
234  struct ReportList *reports,
235  struct Object *ob,
236  struct Object *ob_latt);
237 
238 /* keep this aligned with gpencil_armature enum */
239 #define GP_PAR_ARMATURE_NAME 0
240 #define GP_PAR_ARMATURE_AUTO 1
241 
242 /* ------------ Transformation Utilities ------------ */
243 
244 /* reset parent matrix for all layers */
246  struct Object *obact,
247  struct bGPdata *gpd);
248 
249 /* cursor utilities */
250 void ED_gpencil_brush_draw_eraser(struct Brush *brush, int x, int y);
251 
252 /* ----------- Add Primitive Utilities -------------- */
253 
254 void ED_gpencil_create_monkey(struct bContext *C, struct Object *ob, float mat[4][4]);
255 void ED_gpencil_create_stroke(struct bContext *C, struct Object *ob, float mat[4][4]);
256 void ED_gpencil_create_lineart(struct bContext *C, struct Object *ob);
257 
258 /* ------------ Object Utilities ------------ */
259 struct Object *ED_gpencil_add_object(struct bContext *C,
260  const float loc[3],
261  unsigned short local_view_bits);
262 void ED_gpencil_add_defaults(struct bContext *C, struct Object *ob);
263 /* set object modes */
264 void ED_gpencil_setup_modes(struct bContext *C, struct bGPdata *gpd, int newmode);
265 bool ED_object_gpencil_exit(struct Main *bmain, struct Object *ob);
266 
268  const struct Object *ob,
269  const struct RegionView3D *rv3d,
270  struct bGPDlayer *gpl,
271  struct bGPDstroke *gps,
272  const float origin[3],
273  const int axis);
275  const struct Object *ob,
276  struct bGPDlayer *gpl,
277  const struct RegionView3D *rv3d,
278  const float origin[3],
279  const int axis,
280  struct bGPDspoint *pt);
282  const struct Object *ob,
283  char align_flag,
284  float vec[3]);
286  struct bGPDlayer *gpl,
287  struct bGPDstroke *gps);
288 
290  const struct GP_SpaceConversion *gsc,
291  struct SnapObjectContext *sctx,
292  struct bGPDlayer *gpl,
293  struct bGPDframe *gpf,
294  struct bGPDstroke *gps,
295  const eGP_ReprojectModes mode,
296  const bool keep_original);
297 
298 /* set sculpt cursor */
299 void ED_gpencil_toggle_brush_cursor(struct bContext *C, bool enable, void *customdata);
300 
301 /* vertex groups */
302 void ED_gpencil_vgroup_assign(struct bContext *C, struct Object *ob, float weight);
303 void ED_gpencil_vgroup_remove(struct bContext *C, struct Object *ob);
304 void ED_gpencil_vgroup_select(struct bContext *C, struct Object *ob);
305 void ED_gpencil_vgroup_deselect(struct bContext *C, struct Object *ob);
306 
307 /* join objects */
308 int ED_gpencil_join_objects_exec(struct bContext *C, struct wmOperator *op);
309 
310 /* texture coordinate utilities */
312  float origin[3],
313  const struct tGPspoint *tpt,
314  struct bGPDspoint *pt);
315 void ED_gpencil_update_color_uv(struct Main *bmain, struct Material *mat);
316 
317 /* extend selection to stroke intersections
318  * returns:
319  * 0 - No hit
320  * 1 - Hit in point A
321  * 2 - Hit in point B
322  * 3 - Hit in point A and B
323  */
325  struct bGPDlayer *gpl,
326  struct bGPDstroke *gps,
327  struct bGPDspoint *pt,
328  bool select,
329  bool insert,
330  const float scale,
331  float r_hita[3],
332  float r_hitb[3]);
333 
334 void ED_gpencil_select_toggle_all(struct bContext *C, int action);
335 void ED_gpencil_select_curve_toggle_all(struct bContext *C, int action);
336 
337 /* Ensure stroke sbuffer size is enough */
338 struct tGPspoint *ED_gpencil_sbuffer_ensure(struct tGPspoint *buffer_array,
339  int *buffer_size,
340  int *buffer_used,
341  const bool clear);
342 void ED_gpencil_sbuffer_update_eval(struct bGPdata *gpd, struct Object *ob_eval);
343 
344 /* Tag all scene grease pencil object to update. */
346 
347 /* Vertex color set. */
349  struct Brush *brush,
350  struct bGPDstroke *gps);
352  struct Brush *brush,
353  struct bGPDspoint *pt,
354  struct tGPspoint *tpt);
356  struct Object *ob,
357  struct ToolSettings *ts,
358  struct Brush *brush,
359  struct Material *material,
360  float random_color[3],
361  float pen_pressure);
362 void ED_gpencil_init_random_settings(struct Brush *brush,
363  const int mval[2],
364  struct GpRandomSettings *random_settings);
365 
367  struct bGPDstroke *gps,
368  const float mouse[2],
369  const int radius,
370  const float diff_mat[4][4]);
372  struct GP_SpaceConversion *gsc,
373  int mouse[2],
374  const float diff_mat[4][4]);
376  struct bGPDstroke *gps,
377  const float diff_mat[4][4],
378  float r_min[2],
379  float r_max[2]);
380 
382  struct GP_SpaceConversion *gsc,
383  struct bGPDlayer *gpl,
384  struct bGPDframe *gpf,
385  struct bGPDstroke *gps,
386  const float radius,
387  int *r_index);
388 
390  struct bGPDframe *gpf,
391  struct bGPDstroke *gps,
392  struct bGPDstroke *gps_dst,
393  const int pt_index);
394 
395 void ED_gpencil_stroke_close_by_distance(struct bGPDstroke *gps, const float threshold);
396 
397 #ifdef __cplusplus
398 }
399 #endif
void BLI_kdtree_nd_() insert(KDTree *tree, int index, const float co[KD_DIMS]) ATTR_NONNULL(1
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
void ED_gpencil_layer_frames_keytype_set(struct bGPDlayer *gpl, short type)
struct tGPspoint * ED_gpencil_sbuffer_ensure(struct tGPspoint *buffer_array, int *buffer_size, int *buffer_used, const bool clear)
void ED_gpencil_strokes_copybuf_free(void)
void ED_gpencil_point_vertex_color_set(struct ToolSettings *ts, struct Brush *brush, struct bGPDspoint *pt, struct tGPspoint *tpt)
struct bGPdata ** ED_annotation_data_get_pointers(const struct bContext *C, struct PointerRNA *r_ptr)
struct bGPdata ** ED_gpencil_data_get_pointers_direct(struct ScrArea *area, struct Object *ob, struct PointerRNA *r_ptr)
void ED_gpencil_sbuffer_vertex_color_set(struct Depsgraph *depsgraph, struct Object *ob, struct ToolSettings *ts, struct Brush *brush, struct Material *material, float random_color[3], float pen_pressure)
bool ED_gpencil_anim_copybuf_paste(struct bAnimContext *ac, const short copy_mode)
struct bGPdata * ED_gpencil_data_get_active_direct(struct ScrArea *area, struct Object *ob)
void ED_gpencil_vgroup_select(struct bContext *C, struct Object *ob)
struct bGPdata * ED_annotation_data_get_active(const struct bContext *C)
struct bGPdata ** ED_annotation_data_get_pointers_direct(struct ID *screen_id, struct ScrArea *area, struct Scene *scene, struct PointerRNA *r_ptr)
int ED_gpencil_join_objects_exec(struct bContext *C, struct wmOperator *op)
void ED_operatormacros_gpencil(void)
Definition: gpencil_ops.c:701
void ED_gpencil_reset_layers_parent(struct Depsgraph *depsgraph, struct Object *obact, struct bGPdata *gpd)
struct bGPdata ** ED_gpencil_data_get_pointers(const struct bContext *C, struct PointerRNA *r_ptr)
bool ED_gpencil_anim_copybuf_copy(struct bAnimContext *ac)
void ED_gpencil_layer_frames_duplicate(struct bGPDlayer *gpl)
bool ED_gpencil_has_keyframe_v3d(struct Scene *scene, struct Object *ob, int cfra)
struct bGPdata * ED_gpencil_data_get_active_evaluated(const struct bContext *C)
void ED_gpencil_tpoint_to_point(struct ARegion *region, float origin[3], const struct tGPspoint *tpt, struct bGPDspoint *pt)
void ED_gpencil_toggle_brush_cursor(struct bContext *C, bool enable, void *customdata)
void ED_gpencil_stroke_close_by_distance(struct bGPDstroke *gps, const float threshold)
void ED_gpencil_brush_draw_eraser(struct Brush *brush, int x, int y)
bool ED_gpencil_add_armature(const struct bContext *C, struct ReportList *reports, struct Object *ob, struct Object *ob_arm)
void ED_gpencil_layer_make_cfra_list(struct bGPDlayer *gpl, ListBase *elems, bool onlysel)
void ED_gpencil_layer_frames_select_box(struct bGPDlayer *gpl, float min, float max, short select_mode)
void ED_gpencil_tag_scene_gpencil(struct Scene *scene)
void ED_gpencil_add_defaults(struct bContext *C, struct Object *ob)
struct Object * ED_gpencil_add_object(struct bContext *C, const float loc[3], unsigned short local_view_bits)
void ED_gpencil_select_frames(struct bGPDlayer *gpl, short select_mode)
void ED_gpencil_vgroup_deselect(struct bContext *C, struct Object *ob)
void ED_gpencil_drawing_reference_get(const struct Scene *scene, const struct Object *ob, char align_flag, float vec[3])
int ED_gpencil_session_active(void)
Definition: gpencil_undo.c:60
int ED_gpencil_select_stroke_segment(struct bGPdata *gpd, struct bGPDlayer *gpl, struct bGPDstroke *gps, struct bGPDspoint *pt, bool select, bool insert, const float scale, float r_hita[3], float r_hitb[3])
void ED_gpencil_create_monkey(struct bContext *C, struct Object *ob, float mat[4][4])
void ED_annotation_draw_view2d(const struct bContext *C, bool onlyv2d)
eGP_TargetObjectMode
Definition: ED_gpencil.h:84
@ GP_TARGET_OB_SELECTED
Definition: ED_gpencil.h:86
@ GP_TARGET_OB_NEW
Definition: ED_gpencil.h:85
void ED_gpencil_update_color_uv(struct Main *bmain, struct Material *mat)
bool ED_gpencil_stroke_can_use_direct(const struct ScrArea *area, const struct bGPDstroke *gps)
void ED_gpencil_select_frame(struct bGPDlayer *gpl, int selx, short select_mode)
void ED_gpencil_setup_modes(struct bContext *C, struct bGPdata *gpd, int newmode)
bool ED_gpencil_stroke_material_editable(struct Object *ob, const struct bGPDlayer *gpl, const struct bGPDstroke *gps)
struct bGPdata * ED_gpencil_data_get_active(const struct bContext *C)
void ED_gpencil_init_random_settings(struct Brush *brush, const int mval[2], struct GpRandomSettings *random_settings)
bool ED_object_gpencil_exit(struct Main *bmain, struct Object *ob)
void ED_keymap_gpencil(struct wmKeyConfig *keyconf)
Definition: gpencil_ops.c:482
eGP_ReprojectModes
Definition: ED_gpencil.h:68
@ GP_REPROJECT_VIEW
Definition: ED_gpencil.h:74
@ GP_REPROJECT_CURSOR
Definition: ED_gpencil.h:78
@ GP_REPROJECT_KEEP
Definition: ED_gpencil.h:80
@ GP_REPROJECT_SIDE
Definition: ED_gpencil.h:71
@ GP_REPROJECT_TOP
Definition: ED_gpencil.h:72
@ GP_REPROJECT_FRONT
Definition: ED_gpencil.h:70
@ GP_REPROJECT_SURFACE
Definition: ED_gpencil.h:76
bool ED_gpencil_stroke_material_visible(struct Object *ob, const struct bGPDstroke *gps)
bool ED_gpencil_layer_has_selected_stroke(const struct bGPDlayer *gpl, const bool is_multiedit)
void ED_gpencil_sbuffer_update_eval(struct bGPdata *gpd, struct Object *ob_eval)
struct bGPDstroke * ED_gpencil_stroke_join_and_trim(struct bGPdata *gpd, struct bGPDframe *gpf, struct bGPDstroke *gps, struct bGPDstroke *gps_dst, const int pt_index)
void ED_gpencil_vgroup_remove(struct bContext *C, struct Object *ob)
struct tGPspoint tGPspoint
void ED_gpencil_layer_mirror_frames(struct bGPDlayer *gpl, struct Scene *scene, short mode)
int ED_undo_gpencil_step(struct bContext *C, const int step)
Definition: gpencil_undo.c:68
bool ED_gpencil_layer_frame_select_check(struct bGPDlayer *gpl)
void ED_operatortypes_gpencil(void)
Definition: gpencil_ops.c:514
void ED_gpencil_layer_frame_select_set(struct bGPDlayer *gpl, short mode)
void ED_gpencil_layer_frames_select_region(struct KeyframeEditData *ked, struct bGPDlayer *gpl, short tool, short select_mode)
void ED_gpencil_create_stroke(struct bContext *C, struct Object *ob, float mat[4][4])
void ED_gpencil_project_stroke_to_view(struct bContext *C, struct bGPDlayer *gpl, struct bGPDstroke *gps)
void ED_gpencil_stroke_reproject(struct Depsgraph *depsgraph, const struct GP_SpaceConversion *gsc, struct SnapObjectContext *sctx, struct bGPDlayer *gpl, struct bGPDframe *gpf, struct bGPDstroke *gps, const eGP_ReprojectModes mode, const bool keep_original)
void ED_gpencil_project_stroke_to_plane(const struct Scene *scene, const struct Object *ob, const struct RegionView3D *rv3d, struct bGPDlayer *gpl, struct bGPDstroke *gps, const float origin[3], const int axis)
bool ED_gpencil_stroke_can_use(const struct bContext *C, const struct bGPDstroke *gps)
void ED_annotation_draw_2dimage(const struct bContext *C)
bool ED_gpencil_add_lattice_modifier(const struct bContext *C, struct ReportList *reports, struct Object *ob, struct Object *ob_latt)
void ED_gpencil_create_lineart(struct bContext *C, struct Object *ob)
void ED_annotation_draw_view3d(struct Scene *scene, struct Depsgraph *depsgraph, struct View3D *v3d, struct ARegion *region, bool only3d)
bool ED_gpencil_layer_frames_delete(struct bGPDlayer *gpl)
bool ED_gpencil_layer_frames_looper(struct bGPDlayer *gpl, struct Scene *scene, bool(*gpf_cb)(struct bGPDframe *, struct Scene *))
void ED_annotation_draw_ex(struct Scene *scene, struct bGPdata *gpd, int winx, int winy, const int cfra, const char spacetype)
bool ED_gpencil_frame_has_selected_stroke(const struct bGPDframe *gpf)
struct bGPdata * ED_annotation_data_get_active_direct(struct ID *screen_id, struct ScrArea *area, struct Scene *scene)
void ED_gpencil_layer_snap_frames(struct bGPDlayer *gpl, struct Scene *scene, short mode)
void ED_gpencil_fill_vertex_color_set(struct ToolSettings *ts, struct Brush *brush, struct bGPDstroke *gps)
struct bGPDstroke * ED_gpencil_stroke_nearest_to_ends(struct bContext *C, struct GP_SpaceConversion *gsc, struct bGPDlayer *gpl, struct bGPDframe *gpf, struct bGPDstroke *gps, const float radius, int *r_index)
void ED_gpencil_vgroup_assign(struct bContext *C, struct Object *ob, float weight)
void ED_gpencil_anim_copybuf_free(void)
bool ED_gpencil_data_owner_is_annotation(struct PointerRNA *owner_ptr)
void ED_gpencil_project_point_to_plane(const struct Scene *scene, const struct Object *ob, struct bGPDlayer *gpl, const struct RegionView3D *rv3d, const float origin[3], const int axis, struct bGPDspoint *pt)
bool ED_gpencil_stroke_point_is_inside(struct bGPDstroke *gps, struct GP_SpaceConversion *gsc, int mouse[2], const float diff_mat[4][4])
void ED_gpencil_projected_2d_bound_box(struct GP_SpaceConversion *gsc, struct bGPDstroke *gps, const float diff_mat[4][4], float r_min[2], float r_max[2])
bool ED_gpencil_stroke_check_collision(struct GP_SpaceConversion *gsc, struct bGPDstroke *gps, const float mouse[2], const int radius, const float diff_mat[4][4])
bool ED_gpencil_add_armature_weights(const struct bContext *C, struct ReportList *reports, struct Object *ob, struct Object *ob_arm, int mode)
void ED_gpencil_select_curve_toggle_all(struct bContext *C, int action)
void ED_gpencil_select_toggle_all(struct bContext *C, int action)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define C
Definition: RandGen.cpp:39
Scene scene
Material material
const Depsgraph * depsgraph
static void clear(Message *msg)
Definition: msgfmt.c:294
static void area(int d1, int d2, int e1, int e2, float weights[2])
#define min(a, b)
Definition: sort.c:51
Definition: DNA_ID.h:273
Definition: BKE_main.h:116
struct Material ** mat
float loc[3]
float scale[3]
struct Material ** mat
float x
Definition: ED_gpencil.h:97
float y
Definition: ED_gpencil.h:97
float pressure
Definition: ED_gpencil.h:99
float uv_rot
Definition: ED_gpencil.h:107
bool rnd_dirty
Definition: ED_gpencil.h:111
float time
Definition: ED_gpencil.h:103
float strength
Definition: ED_gpencil.h:101
float rnd[3]
Definition: ED_gpencil.h:109
float vert_color[4]
Definition: ED_gpencil.h:113
float uv_fac
Definition: ED_gpencil.h:105
float max
__forceinline const avxb select(const avxb &m, const avxb &t, const avxb &f)
Definition: util_avxb.h:167