Blender  V3.3
Macros | Functions
GHOST_Xr_intern.h File Reference
#include <memory>
#include <vector>
#include "GHOST_Xr_openxr_includes.h"

Go to the source code of this file.

Macros

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

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

#define CHECK_XR (   call,
  error_msg 
)
Value:
{ \
XrResult _res = call; \
if (XR_FAILED(_res)) { \
throw GHOST_XrException(error_msg, _res); \
} \
} \
(void)0
SyclQueue void void size_t num_bytes void

Definition at line 14 of file GHOST_Xr_intern.h.

◆ 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 27 of file GHOST_Xr_intern.h.

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 35 of file GHOST_Xr_intern.h.

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