37 static bool rna_XrSessionState_is_running(
bContext *
C)
39 # ifdef WITH_XR_OPENXR
48 static void rna_XrSessionState_reset_to_base_pose(
bContext *
C)
50 # ifdef WITH_XR_OPENXR
58 # ifdef WITH_XR_OPENXR
73 static void rna_XrSessionState_viewer_pose_location_get(
PointerRNA *
ptr,
float *r_values)
75 # ifdef WITH_XR_OPENXR
76 const wmXrData *xr = rna_XrSessionState_wm_xr_data_get(
ptr);
84 static void rna_XrSessionState_viewer_pose_rotation_get(
PointerRNA *
ptr,
float *r_values)
86 # ifdef WITH_XR_OPENXR
87 const wmXrData *xr = rna_XrSessionState_wm_xr_data_get(
ptr);
107 "Follow the active scene camera to define the VR view's base pose"},
112 "Follow the transformation of an object to define the VR view's base pose"},
117 "Follow a custom transformation to define the VR view's base pose"},
135 "Define where the location and rotation for the VR view come from, to which "
136 "translation and rotation deltas from the VR headset will be applied to");
143 "Object to take the location and rotation to which translation and "
144 "rotation deltas from the VR headset will be applied to");
149 "Base Pose Location",
150 "Coordinates to apply translation deltas from the VR headset to");
158 "Rotation angle around the Z-Axis to apply the rotation deltas from the VR headset to");
187 "Positional Tracking",
188 "Allow VR headsets to affect the location in virtual space, in addition to the rotation");
202 func =
RNA_def_function(srna,
"is_running",
"rna_XrSessionState_is_running");
210 func =
RNA_def_function(srna,
"reset_to_base_pose",
"rna_XrSessionState_reset_to_base_pose");
222 "Viewer Pose Location",
223 "Last known location of the viewer pose (center between the eyes) in world space");
231 "Viewer Pose Rotation",
232 "Last known rotation of the viewer pose (center between the eyes) in world space");
struct wmWindowManager * CTX_wm_manager(const bContext *C)
MINLINE void zero_v3(float r[3])
@ V3D_OFSDRAW_SHOW_GRIDFLOOR
@ V3D_OFSDRAW_SHOW_ANNOTATION
@ XR_SESSION_USE_POSITION_TRACKING
@ XR_BASE_POSE_SCENE_CAMERA
StructRNA RNA_XrSessionState
#define RNA_TRANSLATION_PREC_DEFAULT
#define ND_XR_DATA_CHANGED
void RNA_define_animate_sdna(bool animate)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_clear_flag(StructRNA *srna, int flag)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
static void rna_def_xr_session_settings(BlenderRNA *brna)
static void rna_def_xr_session_state(BlenderRNA *brna)
void RNA_def_xr(BlenderRNA *brna)
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_exists(const wmXrData *xr)
bool WM_xr_session_state_viewer_pose_rotation_get(const wmXrData *xr, float r_rotation[4])