Move passthrough object in xr::session
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user