Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_view3d.h
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | |||||
| bool ED_view3d_camera_to_view_selected(struct Main *bmain, | bool ED_view3d_camera_to_view_selected(struct Main *bmain, | ||||
| struct Depsgraph *depsgraph, | struct Depsgraph *depsgraph, | ||||
| const struct Scene *scene, | const struct Scene *scene, | ||||
| struct Object *camera_ob); | struct Object *camera_ob); | ||||
| void ED_view3d_lastview_store(struct RegionView3D *rv3d); | void ED_view3d_lastview_store(struct RegionView3D *rv3d); | ||||
| /* Depth buffer */ | /* Depth buffer */ | ||||
| void ED_view3d_depth_update(struct ARegion *region); | typedef enum { | ||||
| V3D_DEPTH_NO_GPENCIL = 0, | |||||
| V3D_DEPTH_GPENCIL_ONLY, | |||||
| V3D_DEPTH_OBJECT_ONLY, | |||||
| } eV3DDepthOverrideMode; | |||||
| void ED_view3d_depth_override(struct Depsgraph *depsgraph, | |||||
| struct ARegion *region, | |||||
| struct View3D *v3d, | |||||
| struct Object *obact, | |||||
| eV3DDepthOverrideMode mode, | |||||
| bool update_cache); | |||||
| float ED_view3d_depth_read_cached(const struct ViewContext *vc, const int mval[2]); | float ED_view3d_depth_read_cached(const struct ViewContext *vc, const int mval[2]); | ||||
| bool ED_view3d_depth_read_cached_normal(const ViewContext *vc, | bool ED_view3d_depth_read_cached_normal(const ViewContext *vc, | ||||
| const int mval[2], | const int mval[2], | ||||
| float r_normal[3]); | float r_normal[3]); | ||||
| bool ED_view3d_depth_unproject(const struct ARegion *region, | bool ED_view3d_depth_unproject(const struct ARegion *region, | ||||
| const int mval[2], | const int mval[2], | ||||
| const double depth, | const double depth, | ||||
| float r_location_world[3]); | float r_location_world[3]); | ||||
| ▲ Show 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | |||||
| bool ED_view3d_autodist(struct Depsgraph *depsgraph, | bool ED_view3d_autodist(struct Depsgraph *depsgraph, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct View3D *v3d, | struct View3D *v3d, | ||||
| const int mval[2], | const int mval[2], | ||||
| float mouse_worldloc[3], | float mouse_worldloc[3], | ||||
| const bool alphaoverride, | const bool alphaoverride, | ||||
| const float fallback_depth_pt[3]); | const float fallback_depth_pt[3]); | ||||
| /* Only draw so #ED_view3d_autodist_simple can be called many times after. */ | |||||
| void ED_view3d_autodist_init(struct Depsgraph *depsgraph, | |||||
| struct ARegion *region, | |||||
| struct View3D *v3d, | |||||
| int mode); | |||||
| bool ED_view3d_autodist_simple(struct ARegion *region, | bool ED_view3d_autodist_simple(struct ARegion *region, | ||||
| const int mval[2], | const int mval[2], | ||||
| float mouse_worldloc[3], | float mouse_worldloc[3], | ||||
| int margin, | int margin, | ||||
| const float *force_depth); | const float *force_depth); | ||||
| bool ED_view3d_autodist_depth(struct ARegion *region, const int mval[2], int margin, float *depth); | bool ED_view3d_autodist_depth(struct ARegion *region, const int mval[2], int margin, float *depth); | ||||
| bool ED_view3d_autodist_depth_seg(struct ARegion *region, | bool ED_view3d_autodist_depth_seg(struct ARegion *region, | ||||
| const int mval_sta[2], | const int mval_sta[2], | ||||
| ▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines | |||||