Blender  V3.3
ED_mball.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Base;
15 struct MetaElem;
16 struct Object;
17 struct SelectPick_Params;
18 struct UndoType;
19 struct bContext;
20 struct wmKeyConfig;
21 
22 void ED_operatortypes_metaball(void);
24 void ED_keymap_metaball(struct wmKeyConfig *keyconf);
25 
30  struct Object *obedit,
31  bool obedit_is_new,
32  float mat[4][4],
33  float dia,
34  int type);
35 
37  uint bases_len,
38  const uint select_id,
39  struct MetaElem **r_ml);
40 
46 bool ED_mball_select_pick(struct bContext *C,
47  const int mval[2],
48  const struct SelectPick_Params *params);
49 
50 bool ED_mball_deselect_all_multi_ex(struct Base **bases, uint bases_len);
52 
56 void ED_mball_editmball_free(struct Object *obedit);
60 void ED_mball_editmball_make(struct Object *obedit);
65 void ED_mball_editmball_load(struct Object *obedit);
66 
67 /* editmball_undo.c */
68 
70 void ED_mball_undosys_type(struct UndoType *ut);
71 
72 #define MBALLSEL_STIFF (1u << 30)
73 #define MBALLSEL_RADIUS (1u << 31)
74 #define MBALLSEL_ANY (MBALLSEL_STIFF | MBALLSEL_RADIUS)
75 
76 #ifdef __cplusplus
77 }
78 #endif
unsigned int uint
Definition: BLI_sys_types.h:67
bool ED_mball_deselect_all_multi_ex(struct Base **bases, uint bases_len)
struct MetaElem * ED_mball_add_primitive(struct bContext *C, struct Object *obedit, bool obedit_is_new, float mat[4][4], float dia, int type)
void ED_mball_undosys_type(struct UndoType *ut)
bool ED_mball_select_pick(struct bContext *C, const int mval[2], const struct SelectPick_Params *params)
Definition: mball_edit.c:847
void ED_mball_editmball_free(struct Object *obedit)
Definition: mball_edit.c:51
void ED_operatortypes_metaball(void)
Definition: mball_ops.c:20
void ED_mball_editmball_make(struct Object *obedit)
Definition: mball_edit.c:59
void ED_keymap_metaball(struct wmKeyConfig *keyconf)
Definition: mball_ops.c:47
bool ED_mball_deselect_all_multi(struct bContext *C)
Definition: mball_edit.c:86
void ED_operatormacros_metaball(void)
Definition: mball_ops.c:33
struct Base * ED_mball_base_and_elem_from_select_buffer(struct Base **bases, uint bases_len, const uint select_id, struct MetaElem **r_ml)
Definition: mball_edit.c:739
void ED_mball_editmball_load(struct Object *obedit)
_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
#define C
Definition: RandGen.cpp:25
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
float * mat