86
87
void VIEW3D_OT_view_lock_clear(struct wmOperatorType *ot);
87
88
void VIEW3D_OT_view_lock_to_active(struct wmOperatorType *ot);
88
89
void VIEW3D_OT_view_center_cursor(struct wmOperatorType *ot);
90
void VIEW3D_OT_view_center_pick(struct wmOperatorType *ot);
89
91
void VIEW3D_OT_view_center_camera(struct wmOperatorType *ot);
90
92
void VIEW3D_OT_view_pan(struct wmOperatorType *ot);
91
93
void VIEW3D_OT_view_persportho(struct wmOperatorType *ot);
101
103
void VIEW3D_OT_zoom_border(struct wmOperatorType *ot);
103
105
void view3d_boxview_copy(ScrArea *sa, ARegion *ar);
104
void ndof_to_quat(struct wmNDOFMotionData *ndof, float q[4]);
105
float ndof_to_axis_angle(struct wmNDOFMotionData *ndof, float axis[3]);
106
void ndof_to_quat(const struct wmNDOFMotionData *ndof, float q[4]);
107
float ndof_to_axis_angle(const struct wmNDOFMotionData *ndof, float axis[3]);
107
109
/* view3d_fly.c */
108
110
void view3d_keymap(struct wmKeyConfig *keyconf);
109
111
void VIEW3D_OT_fly(struct wmOperatorType *ot);
114
void VIEW3D_OT_ruler(struct wmOperatorType *ot);
112
117
void draw_motion_paths_init(View3D *v3d, struct ARegion *ar);
113
118
void draw_motion_path_instance(Scene *scene,
120
125
/* drawobject.c */
121
126
void draw_object(Scene *scene, struct ARegion *ar, View3D *v3d, Base *base, const short dflag);
122
int draw_glsl_material(Scene *scene, struct Object *ob, View3D *v3d, const char dt);
127
bool draw_glsl_material(Scene *scene, struct Object *ob, View3D *v3d, const char dt);
123
128
void draw_object_instance(Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob, const char dt, int outline);
124
129
void draw_object_backbufsel(Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob);
125
130
void drawaxes(float size, char drawtype);
127
132
void view3d_cached_text_draw_begin(void);
128
133
void view3d_cached_text_draw_add(const float co[3], const char *str, short xoffs, short flag, const unsigned char col[4]);
129
void view3d_cached_text_draw_end(View3D * v3d, ARegion * ar, int depth_write, float mat[4][4]);
134
void view3d_cached_text_draw_end(View3D *v3d, ARegion *ar, bool depth_write, float mat[4][4]);
132
137
V3D_CACHE_TEXT_ZBUF = (1 << 0),
139
144
/* drawarmature.c */
140
int draw_armature(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
141
const short dt, const short dflag, const unsigned char ob_wire_col[4],
142
const short is_outline);
145
bool draw_armature(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
146
const short dt, const short dflag, const unsigned char ob_wire_col[4],
147
const bool is_outline);
145
150
void draw_mesh_textured(Scene *scene, View3D *v3d, RegionView3D *rv3d,
146
151
struct Object *ob, struct DerivedMesh *dm, const int draw_flags);
152
void draw_mesh_face_select(struct RegionView3D *rv3d, struct Mesh *me, struct DerivedMesh *dm);
153
void draw_mesh_paint_weight_faces(struct DerivedMesh *dm, const bool do_light,
154
void *facemask_cb, void *user_data);
155
void draw_mesh_paint_weight_edges(RegionView3D *rv3d, struct DerivedMesh *dm, const bool use_depth,
156
void *edgemask_cb, void *user_data);
147
157
void draw_mesh_paint(View3D *v3d, RegionView3D *rv3d,
148
158
struct Object *ob, struct DerivedMesh *dm, const int draw_flags);
150
160
/* view3d_draw.c */
151
161
void view3d_main_area_draw(const struct bContext *C, struct ARegion *ar);
152
void draw_depth(Scene *scene, struct ARegion *ar, View3D *v3d, int (*func)(void *));
162
void draw_depth(Scene *scene, struct ARegion *ar, View3D *v3d, int (*func)(void *), bool alphaoverride);
153
163
void draw_depth_gpencil(Scene *scene, ARegion *ar, View3D *v3d);
154
164
void ED_view3d_after_add(ListBase *lb, Base *base, const short dflag);
173
183
void VIEW3D_OT_game_start(struct wmOperatorType *ot);
176
int ED_view3d_boundbox_clip(RegionView3D * rv3d, float obmat[4][4], struct BoundBox *bb);
186
bool ED_view3d_boundbox_clip(RegionView3D *rv3d, float obmat[4][4], const struct BoundBox *bb);
178
188
void view3d_smooth_view(struct bContext *C, struct View3D *v3d, struct ARegion *ar, struct Object *, struct Object *,
179
189
float *ofs, float *quat, float *dist, float *lens);
197
207
void view3d_tool_props_register(struct ARegionType *art);
199
209
/* view3d_snap.c */
200
int ED_view3d_minmax_verts(struct Object *obedit, float min[3], float max[3]);
210
bool ED_view3d_minmax_verts(struct Object *obedit, float min[3], float max[3]);
202
212
void VIEW3D_OT_snap_selected_to_grid(struct wmOperatorType *ot);
203
213
void VIEW3D_OT_snap_selected_to_cursor(struct wmOperatorType *ot);
236
246
#define VIEW3D_CAMERA_BORDER_HACK
237
247
#ifdef VIEW3D_CAMERA_BORDER_HACK
238
248
extern unsigned char view3d_camera_border_hack_col[3];
239
extern short view3d_camera_border_hack_test;
249
extern bool view3d_camera_border_hack_test;
242
252
#endif /* __VIEW3D_INTERN_H__ */