Monado OpenXR Runtime
Data Structures | Macros | Functions
dummy_hmd.c File Reference

Dummy HMD device. More...

#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "os/os_time.h"
#include "math/m_api.h"
#include "xrt/xrt_device.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_time.h"
#include "util/u_distortion_mesh.h"
Include dependency graph for dummy_hmd.c:

Data Structures

struct  dummy_hmd
 

Macros

#define DH_SPEW(dh, ...)
 
#define DH_DEBUG(dh, ...)
 
#define DH_ERROR(dh, ...)
 

Functions

struct xrt_devicedummy_hmd_create (void)
 Create a dummy hmd. More...
 

Detailed Description

Dummy HMD device.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ DH_DEBUG

#define DH_DEBUG (   dh,
  ... 
)
Value:
do { \
if (dh->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

◆ DH_ERROR

#define DH_ERROR (   dh,
  ... 
)
Value:
do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)

◆ DH_SPEW

#define DH_SPEW (   dh,
  ... 
)
Value:
do { \
if (dh->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)