Move face/body tracker creation logic into constructors

This commit is contained in:
Sapphire
2025-07-23 19:19:44 +02:00
committed by xytovl
parent a1cdbbe0ba
commit e358230a25
8 changed files with 40 additions and 86 deletions
+2 -1
View File
@@ -25,6 +25,7 @@
namespace xr
{
class instance;
class session;
XrResult destroy_fb_face_tracker2(XrFaceTracker2FB);
@@ -36,7 +37,7 @@ class fb_face_tracker2 : public utils::handle<XrFaceTracker2FB, destroy_fb_face_
public:
using packet_type = wivrn::from_headset::tracking::fb_face2;
fb_face_tracker2() = default;
fb_face_tracker2(instance & inst, XrFaceTracker2FB h);
fb_face_tracker2(instance & inst, session & s);
void get_weights(XrTime time, packet_type & out_expressions);
};