Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_view3d.h
| Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| V3D_PROJ_RET_CLIP_ZERO = 3, | V3D_PROJ_RET_CLIP_ZERO = 3, | ||||
| /** bounding box clip - RV3D_CLIPPING */ | /** bounding box clip - RV3D_CLIPPING */ | ||||
| V3D_PROJ_RET_CLIP_BB = 4, | V3D_PROJ_RET_CLIP_BB = 4, | ||||
| /** outside window bounds */ | /** outside window bounds */ | ||||
| V3D_PROJ_RET_CLIP_WIN = 5, | V3D_PROJ_RET_CLIP_WIN = 5, | ||||
| /** outside range (mainly for short), (can't avoid) */ | /** outside range (mainly for short), (can't avoid) */ | ||||
| V3D_PROJ_RET_OVERFLOW = 6, | V3D_PROJ_RET_OVERFLOW = 6, | ||||
| } eV3DProjStatus; | } eV3DProjStatus; | ||||
| ENUM_OPERATORS(eV3DProjStatus, V3D_PROJ_RET_OVERFLOW); | |||||
| /* some clipping tests are optional */ | /* some clipping tests are optional */ | ||||
| typedef enum { | typedef enum { | ||||
| V3D_PROJ_TEST_NOP = 0, | V3D_PROJ_TEST_NOP = 0, | ||||
| V3D_PROJ_TEST_CLIP_BB = (1 << 0), | V3D_PROJ_TEST_CLIP_BB = (1 << 0), | ||||
| V3D_PROJ_TEST_CLIP_WIN = (1 << 1), | V3D_PROJ_TEST_CLIP_WIN = (1 << 1), | ||||
| V3D_PROJ_TEST_CLIP_NEAR = (1 << 2), | V3D_PROJ_TEST_CLIP_NEAR = (1 << 2), | ||||
| V3D_PROJ_TEST_CLIP_FAR = (1 << 3), | V3D_PROJ_TEST_CLIP_FAR = (1 << 3), | ||||
| ▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
| void ED_view3d_cursor_snap_draw_util(struct RegionView3D *rv3d, | void ED_view3d_cursor_snap_draw_util(struct RegionView3D *rv3d, | ||||
| const float loc_prev[3], | const float loc_prev[3], | ||||
| const float loc_curr[3], | const float loc_curr[3], | ||||
| const float normal[3], | const float normal[3], | ||||
| const uchar color_line[4], | const uchar color_line[4], | ||||
| const uchar color_point[4], | const uchar color_point[4], | ||||
| eSnapMode snap_elem_type); | eSnapMode snap_elem_type); | ||||
| /* view3d_iterators.c */ | /* view3d_iterators.cc */ | ||||
| /* foreach iterators */ | /* foreach iterators */ | ||||
| void meshobject_foreachScreenVert( | void meshobject_foreachScreenVert( | ||||
| struct ViewContext *vc, | struct ViewContext *vc, | ||||
| void (*func)(void *userData, struct MVert *eve, const float screen_co[2], int index), | void (*func)(void *userData, struct MVert *eve, const float screen_co[2], int index), | ||||
| void *userData, | void *userData, | ||||
| eV3DProjTest clip_flag); | eV3DProjTest clip_flag); | ||||
| ▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * \note use #ED_view3d_ob_project_mat_get to get projecting mat | * \note use #ED_view3d_ob_project_mat_get to get projecting mat | ||||
| */ | */ | ||||
| void ED_view3d_project_float_v3_m4(const struct ARegion *region, | void ED_view3d_project_float_v3_m4(const struct ARegion *region, | ||||
| const float co[3], | const float co[3], | ||||
| float r_co[3], | float r_co[3], | ||||
| const float mat[4][4]); | const float mat[4][4]); | ||||
| eV3DProjStatus ED_view3d_project_base(const struct ARegion *region, struct Base *base); | eV3DProjStatus ED_view3d_project_base(const struct ARegion *region, | ||||
| struct Base *base, | |||||
| short r_co[2]); | |||||
| /* *** short *** */ | /* *** short *** */ | ||||
| eV3DProjStatus ED_view3d_project_short_ex(const struct ARegion *region, | eV3DProjStatus ED_view3d_project_short_ex(const struct ARegion *region, | ||||
| float perspmat[4][4], | float perspmat[4][4], | ||||
| bool is_local, | bool is_local, | ||||
| const float co[3], | const float co[3], | ||||
| short r_co[2], | short r_co[2], | ||||
| eV3DProjTest flag); | eV3DProjTest flag); | ||||
| ▲ Show 20 Lines • Show All 838 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| void ED_view3d_draw_bgpic_test(const struct Scene *scene, | void ED_view3d_draw_bgpic_test(const struct Scene *scene, | ||||
| struct Depsgraph *depsgraph, | struct Depsgraph *depsgraph, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct View3D *v3d, | struct View3D *v3d, | ||||
| bool do_foreground, | bool do_foreground, | ||||
| bool do_camera_frame); | bool do_camera_frame); | ||||
| /* view3d_gizmo_preselect_type.c */ | /* view3d_gizmo_preselect_type.cc */ | ||||
| void ED_view3d_gizmo_mesh_preselect_get_active(struct bContext *C, | void ED_view3d_gizmo_mesh_preselect_get_active(struct bContext *C, | ||||
| struct wmGizmo *gz, | struct wmGizmo *gz, | ||||
| struct Base **r_base, | struct Base **r_base, | ||||
| struct BMElem **r_ele); | struct BMElem **r_ele); | ||||
| void ED_view3d_gizmo_mesh_preselect_clear(struct wmGizmo *gz); | void ED_view3d_gizmo_mesh_preselect_clear(struct wmGizmo *gz); | ||||
| /* space_view3d.cc */ | /* space_view3d.cc */ | ||||
| Show All 27 Lines | |||||