Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | typedef struct RegionView3D { | ||||
| /* active rotation from NDOF or elsewhere */ | /* active rotation from NDOF or elsewhere */ | ||||
| float rot_angle; | float rot_angle; | ||||
| float rot_axis[3]; | float rot_axis[3]; | ||||
| struct GPUFX *compositor; | struct GPUFX *compositor; | ||||
| } RegionView3D; | } RegionView3D; | ||||
| typedef struct ViewportEngine { | |||||
| struct ViewportEngineType *type; | |||||
| void *render_data; /* void pointer for storing render data for now, could become own struct */ | |||||
| } ViewportEngine; | |||||
| /* 3D ViewPort Struct */ | /* 3D ViewPort Struct */ | ||||
| typedef struct View3D { | typedef struct View3D { | ||||
| struct SpaceLink *next, *prev; | struct SpaceLink *next, *prev; | ||||
| ListBase regionbase; /* storage of regions for inactive spaces */ | ListBase regionbase; /* storage of regions for inactive spaces */ | ||||
| int spacetype; | int spacetype; | ||||
| float blockscale; | float blockscale; | ||||
| short blockhandler[8]; | short blockhandler[8]; | ||||
| ViewportEngine *viewport_engine; | |||||
| float viewquat[4] DNA_DEPRECATED; | float viewquat[4] DNA_DEPRECATED; | ||||
| float dist DNA_DEPRECATED; | float dist DNA_DEPRECATED; | ||||
| float bundle_size; /* size of bundles in reconstructed data */ | float bundle_size; /* size of bundles in reconstructed data */ | ||||
| char bundle_drawtype; /* display style for bundle */ | char bundle_drawtype; /* display style for bundle */ | ||||
| char pad[3]; | char pad[3]; | ||||
| unsigned int lay_prev; /* for active layer toggle */ | unsigned int lay_prev; /* for active layer toggle */ | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | typedef struct View3D { | ||||
| 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 */ | ||||
| /* XXX tmp flags for 2.8 viewport transition to avoid compatibility issues that would be caused by | char pad3[4]; | ||||
| * using usual flag bitfields (which are saved to files). Can be removed when not needed anymore. */ | |||||
| char tmp_compat_flag; | |||||
| char pad3[3]; | |||||
| /* 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 */ | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| #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) | ||||
| /* View3d->tmp_compat_flag */ | |||||
| enum { | |||||
| V3D_NEW_VIEWPORT = (1 << 0), | |||||
| }; | |||||
| /* 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 */ | ||||
| V3D_AROUND_CURSOR = 1, | V3D_AROUND_CURSOR = 1, | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||