pass through HTC_facial_tracking
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "wifi_lock.h"
|
||||
#include "xr/fb_face_tracker2.h"
|
||||
#include "xr/hand_tracker.h"
|
||||
#include "xr/htc_face_tracker.h"
|
||||
#ifdef __ANDROID__
|
||||
#include <android_native_app_glue.h>
|
||||
#endif
|
||||
@@ -127,6 +128,11 @@ class application : public singleton<application>
|
||||
bool fb_face_tracking2_supported = false;
|
||||
xr::fb_face_tracker2 fb_face_tracker2;
|
||||
|
||||
bool htc_face_tracking_eye_supported = false;
|
||||
xr::htc_face_tracker htc_face_tracker_eye;
|
||||
bool htc_face_tracking_lip_supported = false;
|
||||
xr::htc_face_tracker htc_face_tracker_lip;
|
||||
|
||||
bool eye_gaze_supported = false;
|
||||
|
||||
bool session_running = false;
|
||||
@@ -418,6 +424,16 @@ public:
|
||||
return instance().fb_face_tracking2_supported;
|
||||
}
|
||||
|
||||
static bool get_htc_face_tracking_eye_supported()
|
||||
{
|
||||
return instance().htc_face_tracking_eye_supported;
|
||||
}
|
||||
|
||||
static bool get_htc_face_tracking_lip_supported()
|
||||
{
|
||||
return instance().htc_face_tracking_lip_supported;
|
||||
}
|
||||
|
||||
static bool get_eye_gaze_supported()
|
||||
{
|
||||
return instance().eye_gaze_supported;
|
||||
@@ -438,6 +454,16 @@ public:
|
||||
return instance().fb_face_tracker2;
|
||||
}
|
||||
|
||||
static xr::htc_face_tracker & get_htc_face_tracker_eye()
|
||||
{
|
||||
return instance().htc_face_tracker_eye;
|
||||
}
|
||||
|
||||
static xr::htc_face_tracker & get_htc_face_tracker_lip()
|
||||
{
|
||||
return instance().htc_face_tracker_lip;
|
||||
}
|
||||
|
||||
static const std::vector<std::string> & get_xr_extensions()
|
||||
{
|
||||
return instance().xr_extensions;
|
||||
|
||||
Reference in New Issue
Block a user