WIP: Pico 4 Pro face tracking

This commit is contained in:
Sapphire
2025-06-01 10:21:47 +02:00
committed by xytovl
parent 5130bdeda5
commit 908d21ffec
23 changed files with 655 additions and 3 deletions
+14
View File
@@ -24,6 +24,7 @@
#include "xr/fb_face_tracker2.h"
#include "xr/hand_tracker.h"
#include "xr/htc_face_tracker.h"
#include "xr/pico_face_tracker.h"
#ifdef __ANDROID__
#include <android_native_app_glue.h>
#endif
@@ -133,6 +134,9 @@ class application : public singleton<application>
bool htc_face_tracking_lip_supported = false;
xr::htc_face_tracker htc_face_tracker_lip;
bool pico_face_tracking_supported = false;
xr::pico_face_tracker pico_face_tracker;
bool eye_gaze_supported = false;
bool openxr_post_processing_supported = false;
@@ -436,6 +440,11 @@ public:
return instance().htc_face_tracking_lip_supported;
}
static bool get_pico_face_tracking_supported()
{
return instance().pico_face_tracking_supported;
}
static bool get_eye_gaze_supported()
{
return instance().eye_gaze_supported;
@@ -471,6 +480,11 @@ public:
return instance().htc_face_tracker_lip;
}
static xr::pico_face_tracker & get_pico_face_tracker()
{
return instance().pico_face_tracker;
}
static const std::vector<std::string> & get_xr_extensions()
{
return instance().xr_extensions;