Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_userdef_types.h
| Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Lines | typedef struct WalkNavigation { | ||||
| float walk_speed_factor; | float walk_speed_factor; | ||||
| float view_height; | float view_height; | ||||
| float jump_height; | float jump_height; | ||||
| float teleport_time; /* duration to use for teleporting */ | float teleport_time; /* duration to use for teleporting */ | ||||
| short flag; | short flag; | ||||
| short pad[3]; | short pad[3]; | ||||
| } WalkNavigation; | } WalkNavigation; | ||||
| struct HMDSettings { | |||||
| short device; /* HMD device index */ | |||||
| char flag, pad[5]; | |||||
| float custom_ipd; | |||||
| /* Set while using custom_ipd (USER_HMD_USE_DEVICE_IPD) so we can reset to device IPD */ | |||||
| float init_ipd; | |||||
| }; | |||||
| /* HMDViewSettings.flag */ | |||||
| enum { | |||||
| USER_HMD_USE_DEVICE_ROT = (1 << 0), | |||||
| USER_HMD_USE_DEVICE_IPD = (1 << 1), | |||||
| }; | |||||
| typedef struct UserDef { | typedef struct UserDef { | ||||
| /* UserDef has separate do-version handling, and can be read from other files */ | /* UserDef has separate do-version handling, and can be read from other files */ | ||||
| int versionfile, subversionfile; | int versionfile, subversionfile; | ||||
| int flag, dupflag; | int flag, dupflag; | ||||
| int savetime; | int savetime; | ||||
| char tempdir[768]; /* FILE_MAXDIR length */ | char tempdir[768]; /* FILE_MAXDIR length */ | ||||
| char fontdir[768]; | char fontdir[768]; | ||||
| ▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | short pie_initial_timeout; /* direction in the pie menu will always be calculated from the initial position | ||||
| * within this time limit */ | * within this time limit */ | ||||
| short pie_animation_timeout; | short pie_animation_timeout; | ||||
| short pie_menu_confirm; | short pie_menu_confirm; | ||||
| short pie_menu_radius; /* pie menu radius */ | short pie_menu_radius; /* pie menu radius */ | ||||
| short pie_menu_threshold; /* pie menu distance from center before a direction is set */ | short pie_menu_threshold; /* pie menu distance from center before a direction is set */ | ||||
| struct WalkNavigation walk_navigation; | struct WalkNavigation walk_navigation; | ||||
| short opensubdiv_compute_type; | short opensubdiv_compute_type, pad3[3]; | ||||
| char pad5[6]; | |||||
| struct HMDSettings hmd_settings; | |||||
| } UserDef; | } UserDef; | ||||
| extern UserDef U; /* from blenkernel blender.c */ | extern UserDef U; /* from blenkernel blender.c */ | ||||
| /* ***************** USERDEF ****************** */ | /* ***************** USERDEF ****************** */ | ||||
| /* userpref/section */ | /* userpref/section */ | ||||
| typedef enum eUserPref_Section { | typedef enum eUserPref_Section { | ||||
| ▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines | |||||