Monado OpenXR Runtime
|
Driver for the North Star HMD. More...
Files | |
file | ns_hmd.c |
North Star HMD code. | |
file | ns_hmd.h |
Interface between North Star distortion and HMD code. | |
file | ns_interface.h |
Interface to North Star driver code. | |
file | ns_prober.c |
North Star prober code. | |
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... | |
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 xrt_auto_prober * | ns_create_auto_prober (void) |
Create a probe for NS devices. More... | |
struct xrt_device * | ns_hmd_create (const char *config_path, bool print_spew, bool print_debug) |
Create a North Star hmd. More... | |
Driver for the North Star HMD.
struct xrt_auto_prober* ns_create_auto_prober | ( | void | ) |
#include <drivers/north_star/ns_interface.h>
Create a probe for NS devices.
References ns_prober::base, xrt_auto_prober::destroy, and U_TYPED_CALLOC.
void ns_display_uv_to_render_uv | ( | struct ns_uv | display_uv, |
struct ns_uv * | render_uv, | ||
struct ns_eye * | eye | ||
) |
#include <drivers/north_star/ns_hmd.h>
Convert the display UV to the render UV using the distortion mesh.
References OpticalSystem::DisplayUVToRenderUVPreviousSeed(), ns_eye::optical_system, ns_uv::u, ns_uv::v, Vector2::x, and Vector2::y.
struct xrt_device* ns_hmd_create | ( | const char * | config_path, |
bool | print_spew, | ||
bool | print_debug | ||
) |
#include <drivers/north_star/ns_interface.h>
Create a North Star hmd.
References ns_hmd::base, U_DEVICE_ALLOC_HMD, U_DEVICE_ALLOC_TRACKING_NONE, U_DEVICE_ALLOCATE, and xrt_device::update_inputs.