Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | typedef struct View3D { | ||||
| short gridlines; | short gridlines; | ||||
| short gridsubdiv; /* Number of subdivisions in the grid between each highlighted grid line */ | short gridsubdiv; /* Number of subdivisions in the grid between each highlighted grid line */ | ||||
| char gridflag; | char gridflag; | ||||
| /* transform manipulator info */ | /* transform manipulator info */ | ||||
| char twtype, twmode, twflag; | char twtype, twmode, twflag; | ||||
| short flag3; | short flag3; | ||||
| /* The active custom transform orientation of this 3D view. */ | |||||
| struct TransformOrientation *custom_orientation; | |||||
| void *pad5; | |||||
| /* afterdraw, for xray & transparent */ | /* afterdraw, for xray & transparent */ | ||||
| struct ListBase afterdraw_transp; | struct ListBase afterdraw_transp; | ||||
| struct ListBase afterdraw_xray; | struct ListBase afterdraw_xray; | ||||
| struct ListBase afterdraw_xraytransp; | struct ListBase afterdraw_xraytransp; | ||||
| /* drawflags, denoting state */ | /* drawflags, denoting state */ | ||||
| char zbuf, transp, xray; | char zbuf, transp, xray; | ||||
| char multiview_eye; /* multiview current eye - for internal use */ | char multiview_eye; /* multiview current eye - for internal use */ | ||||
| char pad3[4]; | char pad3[4]; | ||||
mont29: Maybe rather `custom_orientation_index`? Two letters more won't change much here, and iirc we… | |||||
| /* note, 'fx_settings.dof' is currently _not_ allocated, | /* note, 'fx_settings.dof' is currently _not_ allocated, | ||||
| * instead set (temporarily) from camera */ | * instead set (temporarily) from camera */ | ||||
| struct GPUFXSettings fx_settings; | struct GPUFXSettings fx_settings; | ||||
| void *properties_storage; /* Nkey panel stores stuff here (runtime only!) */ | void *properties_storage; /* Nkey panel stores stuff here (runtime only!) */ | ||||
| struct Material *defmaterial; /* used by matcap now */ | struct Material *defmaterial; /* used by matcap now */ | ||||
| /* XXX deprecated? */ | /* XXX deprecated? */ | ||||
| ▲ Show 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
| #define V3D_MANIP_SCALE 4 | #define V3D_MANIP_SCALE 4 | ||||
| /* View3d->twmode */ | /* View3d->twmode */ | ||||
| #define V3D_MANIP_GLOBAL 0 | #define V3D_MANIP_GLOBAL 0 | ||||
| #define V3D_MANIP_LOCAL 1 | #define V3D_MANIP_LOCAL 1 | ||||
| #define V3D_MANIP_NORMAL 2 | #define V3D_MANIP_NORMAL 2 | ||||
| #define V3D_MANIP_VIEW 3 | #define V3D_MANIP_VIEW 3 | ||||
| #define V3D_MANIP_GIMBAL 4 | #define V3D_MANIP_GIMBAL 4 | ||||
| #define V3D_MANIP_CUSTOM 5 /* anything of value 5 or higher is custom */ | #define V3D_MANIP_CUSTOM 5 | ||||
| /* View3d->twflag */ | /* View3d->twflag */ | ||||
| /* USE = user setting, DRAW = based on selection */ | /* USE = user setting, DRAW = based on selection */ | ||||
| #define V3D_USE_MANIPULATOR 1 | #define V3D_USE_MANIPULATOR 1 | ||||
| #define V3D_DRAW_MANIPULATOR (1 << 1) | #define V3D_DRAW_MANIPULATOR (1 << 1) | ||||
| #define V3D_SHADED_MANIPULATORS (1 << 2) | #define V3D_SHADED_MANIPULATORS (1 << 2) | ||||
| /* BGPic->flag */ | /* BGPic->flag */ | ||||
| Show All 32 Lines | |||||
Maybe rather custom_orientation_index? Two letters more won't change much here, and iirc we try to avoid condensed naming in wide-spread code nowadays, hence especially in DNA area. ;)