Move passthrough object in xr::session

This commit is contained in:
Patrick Nicolas
2024-11-06 19:46:28 +01:00
parent 6aa28c718e
commit 462b823a52
4 changed files with 41 additions and 26 deletions
+9
View File
@@ -28,6 +28,7 @@
#include "fb_face_tracker2.h"
#include "hand_tracker.h"
#include "passthrough.h"
#include "space.h"
namespace xr
@@ -38,6 +39,7 @@ class system;
class session : public utils::handle<XrSession, xrDestroySession>
{
instance * inst = nullptr;
xr::passthrough passthrough;
public:
session() = default;
@@ -77,5 +79,12 @@ public:
void sync_actions(XrActionSet action_set, const std::string & subaction_path);
void sync_actions(std::span<XrActionSet> action_sets);
void enable_passthrough(xr::system &);
void disable_passthrough();
xr::passthrough & get_passthrough()
{
return passthrough;
}
};
} // namespace xr