Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_api.h
| Show First 20 Lines • Show All 956 Lines • ▼ Show 20 Lines | |||||
| bool WM_xr_session_is_ready(const wmXrData *xr); | bool WM_xr_session_is_ready(const wmXrData *xr); | ||||
| struct wmXrSessionState *WM_xr_session_state_handle_get(const wmXrData *xr); | struct wmXrSessionState *WM_xr_session_state_handle_get(const wmXrData *xr); | ||||
| void WM_xr_session_base_pose_reset(wmXrData *xr); | void WM_xr_session_base_pose_reset(wmXrData *xr); | ||||
| bool WM_xr_session_state_viewer_pose_location_get(const wmXrData *xr, float r_location[3]); | bool WM_xr_session_state_viewer_pose_location_get(const wmXrData *xr, float r_location[3]); | ||||
| bool WM_xr_session_state_viewer_pose_rotation_get(const wmXrData *xr, float r_rotation[4]); | bool WM_xr_session_state_viewer_pose_rotation_get(const wmXrData *xr, float r_rotation[4]); | ||||
| bool WM_xr_session_state_viewer_pose_matrix_info_get(const wmXrData *xr, | bool WM_xr_session_state_viewer_pose_matrix_info_get(const wmXrData *xr, | ||||
| float r_viewmat[4][4], | float r_viewmat[4][4], | ||||
| float *r_focal_len); | float *r_focal_len); | ||||
| bool WM_xr_session_state_controller_pose_location_get(const wmXrData *xr, | bool WM_xr_session_state_controller_grip_location_get(const wmXrData *xr, | ||||
| unsigned int subaction_idx, | unsigned int subaction_idx, | ||||
| float r_location[3]); | float r_location[3]); | ||||
| bool WM_xr_session_state_controller_pose_rotation_get(const wmXrData *xr, | bool WM_xr_session_state_controller_grip_rotation_get(const wmXrData *xr, | ||||
| unsigned int subaction_idx, | |||||
| float r_rotation[4]); | |||||
| bool WM_xr_session_state_controller_aim_location_get(const wmXrData *xr, | |||||
| unsigned int subaction_idx, | |||||
| float r_location[3]); | |||||
| bool WM_xr_session_state_controller_aim_rotation_get(const wmXrData *xr, | |||||
| unsigned int subaction_idx, | unsigned int subaction_idx, | ||||
| float r_rotation[4]); | float r_rotation[4]); | ||||
| /* wm_xr_actions.c */ | /* wm_xr_actions.c */ | ||||
| /* XR action functions to be called pre-XR session start. | /* XR action functions to be called pre-XR session start. | ||||
| * NOTE: The "destroy" functions can also be called post-session start. */ | * NOTE: The "destroy" functions can also be called post-session start. */ | ||||
| bool WM_xr_action_set_create(wmXrData *xr, const char *action_set_name); | bool WM_xr_action_set_create(wmXrData *xr, const char *action_set_name); | ||||
| void WM_xr_action_set_destroy(wmXrData *xr, const char *action_set_name); | void WM_xr_action_set_destroy(wmXrData *xr, const char *action_set_name); | ||||
| bool WM_xr_action_create(wmXrData *xr, | bool WM_xr_action_create(wmXrData *xr, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| Show All 18 Lines | |||||
| void WM_xr_action_binding_destroy(wmXrData *xr, | void WM_xr_action_binding_destroy(wmXrData *xr, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| const char *action_name, | const char *action_name, | ||||
| const char *profile_path); | const char *profile_path); | ||||
| /* If action_set_name is NULL, then all action sets will be treated as active. */ | /* If action_set_name is NULL, then all action sets will be treated as active. */ | ||||
| bool WM_xr_active_action_set_set(wmXrData *xr, const char *action_set_name); | bool WM_xr_active_action_set_set(wmXrData *xr, const char *action_set_name); | ||||
| bool WM_xr_controller_pose_action_set(wmXrData *xr, | bool WM_xr_controller_pose_actions_set(wmXrData *xr, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| const char *action_name); | const char *grip_action_name, | ||||
| const char *aim_action_name); | |||||
| /* XR action functions to be called post-XR session start. */ | /* XR action functions to be called post-XR session start. */ | ||||
| bool WM_xr_action_state_get(const wmXrData *xr, | bool WM_xr_action_state_get(const wmXrData *xr, | ||||
| const char *action_set_name, | const char *action_set_name, | ||||
| const char *action_name, | const char *action_name, | ||||
| const char *subaction_path, | const char *subaction_path, | ||||
| struct wmXrActionState *r_state); | struct wmXrActionState *r_state); | ||||
| bool WM_xr_haptic_action_apply(wmXrData *xr, | bool WM_xr_haptic_action_apply(wmXrData *xr, | ||||
| Show All 11 Lines | |||||