Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_view3d.h
| Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | |||||
| void ED_view3d_autodist_init(struct Scene *scene, struct ARegion *ar, struct View3D *v3d, int mode); | void ED_view3d_autodist_init(struct Scene *scene, struct ARegion *ar, struct View3D *v3d, int mode); | ||||
| bool ED_view3d_autodist_simple(struct ARegion *ar, const int mval[2], float mouse_worldloc[3], int margin, float *force_depth); | bool ED_view3d_autodist_simple(struct ARegion *ar, const int mval[2], float mouse_worldloc[3], int margin, float *force_depth); | ||||
| bool ED_view3d_autodist_depth(struct ARegion *ar, const int mval[2], int margin, float *depth); | bool ED_view3d_autodist_depth(struct ARegion *ar, const int mval[2], int margin, float *depth); | ||||
| bool ED_view3d_autodist_depth_seg(struct ARegion *ar, const int mval_sta[2], const int mval_end[2], int margin, float *depth); | bool ED_view3d_autodist_depth_seg(struct ARegion *ar, const int mval_sta[2], const int mval_end[2], int margin, float *depth); | ||||
| /* select */ | /* select */ | ||||
| #define MAXPICKELEMS 2500 | #define MAXPICKELEMS 2500 | ||||
| #define MAXPICKBUF (4 * MAXPICKELEMS) | #define MAXPICKBUF (4 * MAXPICKELEMS) | ||||
| short view3d_opengl_select(struct ViewContext *vc, unsigned int *buffer, unsigned int bufsize, const struct rcti *input, bool do_nearest); | |||||
| enum { | |||||
| VIEW3D_SELECT_ALL = 0, | |||||
| VIEW3D_SELECT_DEPTH_SORT_ALL = 1, | |||||
| VIEW3D_SELECT_DEPTH_SORT_NEAREST = 2, | |||||
| }; | |||||
| short view3d_opengl_select( | |||||
| struct ViewContext *vc, unsigned int *buffer, unsigned int bufsize, const struct rcti *input, | |||||
| int select_mode); | |||||
| /* view3d_select.c */ | /* view3d_select.c */ | ||||
| float ED_view3d_select_dist_px(void); | float ED_view3d_select_dist_px(void); | ||||
| void view3d_set_viewcontext(struct bContext *C, struct ViewContext *vc); | void view3d_set_viewcontext(struct bContext *C, struct ViewContext *vc); | ||||
| void view3d_operator_needs_opengl(const struct bContext *C); | void view3d_operator_needs_opengl(const struct bContext *C); | ||||
| void view3d_region_operator_needs_opengl(struct wmWindow *win, struct ARegion *ar); | void view3d_region_operator_needs_opengl(struct wmWindow *win, struct ARegion *ar); | ||||
| void view3d_opengl_read_pixels(struct ARegion *ar, int x, int y, int w, int h, int format, int type, void *data); | void view3d_opengl_read_pixels(struct ARegion *ar, int x, int y, int w, int h, int format, int type, void *data); | ||||
| void view3d_get_transformation(const struct ARegion *ar, struct RegionView3D *rv3d, struct Object *ob, struct bglMats *mats); | void view3d_get_transformation(const struct ARegion *ar, struct RegionView3D *rv3d, struct Object *ob, struct bglMats *mats); | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||