mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
OpenXR: Change timing of xrWaitFrame and add thread safety features to OpenXR
This commit is contained in:
parent
d282e4f0e6
commit
cbab7dc049
19 changed files with 617 additions and 246 deletions
|
@ -43,6 +43,8 @@ void OpenXRInterface::_bind_methods() {
|
|||
ADD_SIGNAL(MethodInfo("session_stopping"));
|
||||
ADD_SIGNAL(MethodInfo("session_focussed"));
|
||||
ADD_SIGNAL(MethodInfo("session_visible"));
|
||||
ADD_SIGNAL(MethodInfo("session_loss_pending"));
|
||||
ADD_SIGNAL(MethodInfo("instance_exiting"));
|
||||
ADD_SIGNAL(MethodInfo("pose_recentered"));
|
||||
ADD_SIGNAL(MethodInfo("refresh_rate_changed", PropertyInfo(Variant::FLOAT, "refresh_rate")));
|
||||
|
||||
|
@ -1258,6 +1260,14 @@ void OpenXRInterface::on_state_stopping() {
|
|||
emit_signal(SNAME("session_stopping"));
|
||||
}
|
||||
|
||||
void OpenXRInterface::on_state_loss_pending() {
|
||||
emit_signal(SNAME("session_loss_pending"));
|
||||
}
|
||||
|
||||
void OpenXRInterface::on_state_exiting() {
|
||||
emit_signal(SNAME("instance_exiting"));
|
||||
}
|
||||
|
||||
void OpenXRInterface::on_pose_recentered() {
|
||||
emit_signal(SNAME("pose_recentered"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue