Blender  V2.93
ED_mball.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  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct Base;
31 struct Object;
32 struct UndoType;
33 struct bContext;
34 struct wmKeyConfig;
35 
36 void ED_operatortypes_metaball(void);
38 void ED_keymap_metaball(struct wmKeyConfig *keyconf);
39 
41  struct Object *obedit,
42  bool obedit_is_new,
43  float mat[4][4],
44  float dia,
45  int type);
46 
48  struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle);
49 
50 bool ED_mball_deselect_all_multi_ex(struct Base **bases, uint bases_len);
52 
53 void ED_mball_editmball_free(struct Object *obedit);
54 void ED_mball_editmball_make(struct Object *obedit);
55 void ED_mball_editmball_load(struct Object *obedit);
56 
57 /* editmball_undo.c */
58 void ED_mball_undosys_type(struct UndoType *ut);
59 
60 #define MBALLSEL_STIFF (1u << 30)
61 #define MBALLSEL_RADIUS (1u << 31)
62 #define MBALLSEL_ANY (MBALLSEL_STIFF | MBALLSEL_RADIUS)
63 
64 #ifdef __cplusplus
65 }
66 #endif
unsigned int uint
Definition: BLI_sys_types.h:83
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], bool extend, bool deselect, bool toggle)
Definition: mball_edit.c:764
void ED_mball_editmball_free(struct Object *obedit)
Definition: mball_edit.c:66
void ED_operatortypes_metaball(void)
Definition: mball_ops.c:36
void ED_mball_editmball_make(struct Object *obedit)
Definition: mball_edit.c:76
void ED_keymap_metaball(struct wmKeyConfig *keyconf)
Definition: mball_ops.c:63
bool ED_mball_deselect_all_multi(struct bContext *C)
Definition: mball_edit.c:106
void ED_operatormacros_metaball(void)
Definition: mball_ops.c:49
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:39
float * mat