@@ -13,29 +13,29 @@ using namespace alvr_chaperone;
1313
1414std::mutex chaperone_mutex;
1515
16- void InitChaperoneClient () {
16+ void InitOpenvrClient () {
1717#ifndef __APPLE__
1818 std::unique_lock<std::mutex> lock (chaperone_mutex);
1919
2020 vr::EVRInitError error;
2121 vr::VR_Init (&error, vr::VRApplication_Utility);
2222
2323 if (error != vr::VRInitError_None) {
24- Warn (" Failed to init OpenVR client to update Chaperone boundary ! Error: %d" , error);
24+ Warn (" Failed to init OpenVR client! Error: %d" , error);
2525 return ;
2626 }
2727#endif
2828}
2929
30- void ShutdownChaperoneClient () {
30+ void ShutdownOpenvrClient () {
3131#ifndef __APPLE__
3232 std::unique_lock<std::mutex> lock (chaperone_mutex);
3333
3434 vr::VR_Shutdown ();
3535#endif
3636}
3737
38- void SetChaperoneArea (float areaWidth, float areaHeight) {
38+ void _SetChaperoneArea (float areaWidth, float areaHeight) {
3939#ifndef __APPLE__
4040 std::unique_lock<std::mutex> lock (chaperone_mutex);
4141
@@ -69,16 +69,6 @@ void SetChaperoneArea(float areaWidth, float areaHeight) {
6969
7070#ifdef __linux__
7171vr::HmdMatrix34_t GetRawZeroPose () {
72- vr::HmdMatrix34_t out = {};
73- std::unique_lock<std::mutex> lock (chaperone_mutex);
74- vr::EVRInitError error;
75- vr::VR_Init (&error, vr::VRApplication_Utility);
76- if (error != vr::VRInitError_None) {
77- Warn (" Failed to init OpenVR client to get raw zero pose! Error: %d" , error);
78- return out;
79- }
80- out = vr::VRSystem ()->GetRawZeroPoseToStandingAbsoluteTrackingPose ();
81- vr::VR_Shutdown ();
82- return out;
72+ return vr::VRSystem ()->GetRawZeroPoseToStandingAbsoluteTrackingPose ();
8373}
8474#endif
0 commit comments