Monado OpenXR Runtime
Data Structures | Macros | Functions
ns_hmd.h File Reference

Interface between North Star distortion and HMD code. More...

#include "math/m_api.h"
#include "util/u_distortion_mesh.h"
#include "util/u_json.h"
#include "util/u_misc.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
Include dependency graph for ns_hmd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ns_uv
 Simple UV struct. More...
 
struct  ns_leap
 Configuration information about the LMC or Rigel sensor according to the configuration file. More...
 
struct  ns_eye
 Distortion information about an eye parsed from the configuration file. More...
 
struct  ns_hmd
 Information about the whole North Star headset. More...
 
struct  ns_mesh
 The mesh generator for the North Star distortion. More...
 

Macros

#define NS_SPEW(c, ...)
 
#define NS_DEBUG(c, ...)
 
#define NS_ERROR(c, ...)
 

Functions

void ns_display_uv_to_render_uv (struct ns_uv display_uv, struct ns_uv *render_uv, struct ns_eye *eye)
 Convert the display UV to the render UV using the distortion mesh. More...
 
struct ns_optical_system * ns_create_optical_system (struct ns_eye *eye)
 

Detailed Description

Interface between North Star distortion and HMD code.

Author
Nova King techn.nosp@m.obab.nosp@m.oo@gm.nosp@m.ail..nosp@m.com

Macro Definition Documentation

◆ NS_DEBUG

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

◆ NS_ERROR

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

◆ NS_SPEW

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