Blender V4.3
GHOST_Xr_intern.hh File Reference
#include <memory>
#include <vector>
#include "GHOST_Xr_openxr_includes.hh"

Go to the source code of this file.

Macros

#define CHECK_XR(call, error_msg)
 
#define CHECK_XR_ASSERT(call)
 
#define INIT_EXTENSION_FUNCTION(name)
 

Functions

void copy_ghost_pose_to_openxr_pose (const GHOST_XrPose &ghost_pose, XrPosef &r_oxr_pose)
 
void copy_openxr_pose_to_ghost_pose (const XrPosef &oxr_pose, GHOST_XrPose &r_ghost_pose)
 

Macro Definition Documentation

◆ CHECK_XR

◆ CHECK_XR_ASSERT

#define CHECK_XR_ASSERT ( call)
Value:
{ \
XrResult _res = call; \
assert(_res == XR_SUCCESS); \
(void)_res; \
} \
(void)0

Variation of CHECK_XR() that doesn't throw, but asserts for success. Especially useful for destructors, which shouldn't throw.

Definition at line 29 of file GHOST_Xr_intern.hh.

Referenced by GHOST_XrAction::~GHOST_XrAction(), GHOST_XrActionSet::~GHOST_XrActionSet(), GHOST_XrActionSpace::~GHOST_XrActionSpace(), GHOST_XrContext::~GHOST_XrContext(), GHOST_XrSession::~GHOST_XrSession(), and GHOST_XrSwapchain::~GHOST_XrSwapchain().

◆ INIT_EXTENSION_FUNCTION

#define INIT_EXTENSION_FUNCTION ( name)
Value:
xrGetInstanceProcAddr(instance, #name, reinterpret_cast<PFN_xrVoidFunction *>(&g_##name)), \
"Failed to get pointer to extension function: " #name);
#define CHECK_XR(call, error_msg)

Definition at line 37 of file GHOST_Xr_intern.hh.

Referenced by init_controller_model_extension_functions(), and init_passthrough_extension_functions().

Function Documentation

◆ copy_ghost_pose_to_openxr_pose()

void copy_ghost_pose_to_openxr_pose ( const GHOST_XrPose & ghost_pose,
XrPosef & r_oxr_pose )
inline

Definition at line 42 of file GHOST_Xr_intern.hh.

Referenced by GHOST_XrActionSpace::GHOST_XrActionSpace().

◆ copy_openxr_pose_to_ghost_pose()

void copy_openxr_pose_to_ghost_pose ( const XrPosef & oxr_pose,
GHOST_XrPose & r_ghost_pose )
inline