31 #define NS_SPEW(c, ...) \ 33 if (c->print_spew) { \ 34 fprintf(stderr, "%s - ", __func__); \ 35 fprintf(stderr, __VA_ARGS__); \ 36 fprintf(stderr, "\n"); \ 40 #define NS_DEBUG(c, ...) \ 42 if (c->print_debug) { \ 43 fprintf(stderr, "%s - ", __func__); \ 44 fprintf(stderr, __VA_ARGS__); \ 45 fprintf(stderr, "\n"); \ 49 #define NS_ERROR(c, ...) \ 51 fprintf(stderr, "%s - ", __func__); \ 52 fprintf(stderr, __VA_ARGS__); \ 53 fprintf(stderr, "\n"); \ 68 struct ns_optical_system;
101 float ellipse_minor_axis;
102 float ellipse_major_axis;
114 struct ns_optical_system *optical_system;
127 const char *config_path;
129 struct ns_eye eye_configs[2];
161 static inline struct ns_hmd *
164 return (
struct ns_hmd *)xdev;
185 struct ns_uv *render_uv,
188 struct ns_optical_system *
189 ns_create_optical_system(
struct ns_eye *eye);
A 3 element vector with single floats.
Definition: xrt_defines.h:131
A pose composed of a position and orientation.
Definition: xrt_defines.h:229
Simple UV struct.
Definition: ns_hmd.h:75
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.
Definition: deformation_northstar.cpp:307
A quaternion with single floats.
Definition: xrt_defines.h:97
The mesh generator for the North Star distortion.
Definition: ns_hmd.h:143
Header defining a xrt HMD device.
Distortion information about an eye parsed from the configuration file.
Definition: ns_hmd.h:99
Code to generate disortion meshes.
Common defines and enums for XRT.
A tightly packed 4x4 matrix of floats.
Definition: xrt_defines.h:276
Generator struct for building meshes, can be implemented by drivers for special meshes.
Definition: u_distortion_mesh.h:55
Configuration information about the LMC or Rigel sensor according to the configuration file...
Definition: ns_hmd.h:87
Information about the whole North Star headset.
Definition: ns_hmd.h:122
Tiny JSON wrapper around cJSON header.
A single HMD or input device.
Definition: xrt_device.h:203
C interface to math library.