Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | |||||
| #define RV3D_GPULIGHT_UPDATE 16 | #define RV3D_GPULIGHT_UPDATE 16 | ||||
| #define RV3D_IS_GAME_ENGINE 32 /* runtime flag, used to check if LoD's should be used */ | #define RV3D_IS_GAME_ENGINE 32 /* runtime flag, used to check if LoD's should be used */ | ||||
| /** | /** | ||||
| * Disable zbuffer offset, skip calls to #ED_view3d_polygon_offset. | * Disable zbuffer offset, skip calls to #ED_view3d_polygon_offset. | ||||
| * Use when precise surface depth is needed and picking bias isn't, see T45434). | * Use when precise surface depth is needed and picking bias isn't, see T45434). | ||||
| */ | */ | ||||
| #define RV3D_ZOFFSET_DISABLED 64 | #define RV3D_ZOFFSET_DISABLED 64 | ||||
| enum { | |||||
| /* RegionView3d->viewlock */ | /* RegionView3d->viewlock */ | ||||
| #define RV3D_LOCKED (1 << 0) | RV3D_LOCKED = (1 << 0), | ||||
| #define RV3D_BOXVIEW (1 << 1) | RV3D_BOXVIEW = (1 << 1), | ||||
| #define RV3D_BOXCLIP (1 << 2) | RV3D_BOXCLIP = (1 << 2), | ||||
| /* uses viewdata from another rv3d so view manipulation is disabled */ | |||||
| RV3D_LOCKED_SHARED = (RV3D_LOCKED | (1 << 3)), | |||||
| /* Don't allow changing to othographic view. Note that orthographic camera views are allowed though. */ | |||||
| RV3D_LOCK_PERSP_VIEW = (1 << 4), | |||||
| /* RegionView3d->viewlock_quad */ | /* RegionView3d->viewlock_quad */ | ||||
| #define RV3D_VIEWLOCK_INIT (1 << 7) | RV3D_VIEWLOCK_INIT = (1 << 7), | ||||
| }; | |||||
| /* check if the region is both, locked and shared */ | |||||
| #define RV3D_IS_LOCKED_SHARED(rv3d) (((rv3d)->viewlock & RV3D_LOCKED_SHARED) == RV3D_LOCKED_SHARED) | |||||
| /* RegionView3d->view */ | /* RegionView3d->view */ | ||||
| #define RV3D_VIEW_USER 0 | #define RV3D_VIEW_USER 0 | ||||
| #define RV3D_VIEW_FRONT 1 | #define RV3D_VIEW_FRONT 1 | ||||
| #define RV3D_VIEW_BACK 2 | #define RV3D_VIEW_BACK 2 | ||||
| #define RV3D_VIEW_LEFT 3 | #define RV3D_VIEW_LEFT 3 | ||||
| #define RV3D_VIEW_RIGHT 4 | #define RV3D_VIEW_RIGHT 4 | ||||
| #define RV3D_VIEW_TOP 5 | #define RV3D_VIEW_TOP 5 | ||||
| Show All 17 Lines | |||||
| #define V3D_SOLID_MATCAP (1 << 12) /* user flag */ | #define V3D_SOLID_MATCAP (1 << 12) /* user flag */ | ||||
| #define V3D_SHOW_SOLID_MATCAP (1 << 13) /* runtime flag */ | #define V3D_SHOW_SOLID_MATCAP (1 << 13) /* runtime flag */ | ||||
| #define V3D_OCCLUDE_WIRE (1 << 14) | #define V3D_OCCLUDE_WIRE (1 << 14) | ||||
| #define V3D_SHADELESS_TEX (1 << 15) | #define V3D_SHADELESS_TEX (1 << 15) | ||||
| /* View3d->flag3 (short) */ | /* View3d->flag3 (short) */ | ||||
| #define V3D_SHOW_WORLD (1 << 0) | #define V3D_SHOW_WORLD (1 << 0) | ||||
| #define V3D_SHOW_HMD_MIRROR (1 << 1) | |||||
| /* View3D->around */ | /* View3D->around */ | ||||
| enum { | enum { | ||||
| /* center of the bounding box */ | /* center of the bounding box */ | ||||
| V3D_AROUND_CENTER_BOUNDS = 0, | V3D_AROUND_CENTER_BOUNDS = 0, | ||||
| /* center from the sum of all points divided by the total */ | /* center from the sum of all points divided by the total */ | ||||
| V3D_AROUND_CENTER_MEAN = 3, | V3D_AROUND_CENTER_MEAN = 3, | ||||
| /* pivot around the 2D/3D cursor */ | /* pivot around the 2D/3D cursor */ | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||