Monado OpenXR Runtime
Loading...
Searching...
No Matches
XRTVRClientCore.cpp File Reference

Implementation of the latest IVRClientCore interface version. More...

#include "common/openvr_error.hpp"
#include "common/openvr_logger.hpp"
#include "XRTVRClientCore.hpp"
#include "XRTVRCompositor.hpp"
#include "XRTVRRenderModels.hpp"
#include "XRTVRSystem.hpp"
#include "old/XRTVRSystem_023.hpp"
#include <cstring>
#include <new>
Include dependency graph for XRTVRClientCore.cpp:

Macros

#define CLEAR_INTERFACE(name, version_suffix)   this->name##version_suffix.reset();
 
#define CHECK_INTERFACE_VERSION(name, version)
 
#define CHECK_INTERFACE_VERSION(name, version_suffix)
 
#define GET_CORE_INTERFACE(name, version)
 
#define GET_INTERFACE(name, version_suffix)
 

Detailed Description

Implementation of the latest IVRClientCore interface version.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com

Macro Definition Documentation

◆ CHECK_INTERFACE_VERSION [1/2]

#define CHECK_INTERFACE_VERSION (   name,
  version 
)
Value:
if (std::strcmp(pchInterfaceVersion, vr::I##name##version##_Version) == 0) { \
return vr::EVRInitError::VRInitError_None; \
}

◆ CHECK_INTERFACE_VERSION [2/2]

#define CHECK_INTERFACE_VERSION (   name,
  version_suffix 
)
Value:
if (std::strcmp(pchInterfaceVersion, vr::I##name##version_suffix##_Version) == 0) { \
return vr::EVRInitError::VRInitError_None; \
}

◆ GET_CORE_INTERFACE

#define GET_CORE_INTERFACE (   name,
  version 
)
Value:
if (std::strcmp(pchNameAndVersion, vr::I##name##version##_Version) == 0) { \
return static_cast<vr::I##name##version *>(this); \
}

◆ GET_INTERFACE

#define GET_INTERFACE (   name,
  version_suffix 
)
Value:
if (std::strcmp(pchNameAndVersion, vr::I##name##version_suffix##_Version) == 0) { \
if (!this->name##version_suffix) { \
this->name##version_suffix = std::make_shared<XRT##name##version_suffix>(this); \
} \
return this->name##version_suffix.get(); \
}