Monado OpenXR Runtime
|
All of the device components that deals with interfacing to a users head. More...
#include <xrt/xrt_device.h>
Data Fields | |
struct { | |
int w_pixels | |
int h_pixels | |
uint64_t nominal_frame_interval_ns | |
Nominal frame interval. More... | |
} | screens [1] |
The hmd screen, right now hardcoded to one. More... | |
struct xrt_view | views [2] |
Display information. More... | |
enum xrt_blend_mode | blend_mode |
Supported blend modes, a bitfield. More... | |
struct { | |
enum xrt_distortion_model models | |
Supported distortion models, a bitfield. More... | |
enum xrt_distortion_model preferred | |
Preferred disortion model, single value. More... | |
struct { | |
float distortion_k [4] | |
Panotools universal distortion k. More... | |
float aberration_k [4] | |
Panotools post distortion scale, <r, g, b, _>. More... | |
float warp_scale | |
Panotools warp scale. More... | |
} pano | |
struct { | |
float aspect_x_over_y | |
float grow_for_undistort | |
float undistort_r2_cutoff [2] | |
Left/right. More... | |
float center [2][2] | |
Left/right, x/y. More... | |
float coefficients [2][3][3] | |
left/right, r/g/b, a/b/c More... | |
} vive | |
struct { | |
float * vertices | |
Data. More... | |
size_t num_vertices | |
Number of vertices. More... | |
size_t stride | |
Stride of vertices. More... | |
size_t num_uv_channels | |
1 or 3 for (chromatic aberration). More... | |
int * indices | |
Indices, for triangle strip. More... | |
size_t num_indices [2] | |
Number of indices for the triangle strip. More... | |
size_t offset_indices [2] | |
Offsets for the indices. More... | |
size_t total_num_indices | |
Total number of indices. More... | |
} mesh | |
} | distortion |
Distortion information. More... | |
All of the device components that deals with interfacing to a users head.
HMD is probably a bad name for the future but for now will have to do.
float xrt_hmd_parts::aberration_k[4] |
Panotools post distortion scale, <r, g, b, _>.
enum xrt_blend_mode xrt_hmd_parts::blend_mode |
Supported blend modes, a bitfield.
Referenced by u_device_setup_split_side_by_side().
float xrt_hmd_parts::center[2][2] |
Left/right, x/y.
float xrt_hmd_parts::coefficients[2][3][3] |
left/right, r/g/b, a/b/c
struct { ... } xrt_hmd_parts::distortion |
Distortion information.
Referenced by comp_distortion_init(), and u_device_free().
float xrt_hmd_parts::distortion_k[4] |
Panotools universal distortion k.
int* xrt_hmd_parts::indices |
Indices, for triangle strip.
enum xrt_distortion_model xrt_hmd_parts::models |
Supported distortion models, a bitfield.
uint64_t xrt_hmd_parts::nominal_frame_interval_ns |
Nominal frame interval.
size_t xrt_hmd_parts::num_indices[2] |
Number of indices for the triangle strip.
size_t xrt_hmd_parts::num_uv_channels |
1 or 3 for (chromatic aberration).
size_t xrt_hmd_parts::num_vertices |
Number of vertices.
size_t xrt_hmd_parts::offset_indices[2] |
Offsets for the indices.
enum xrt_distortion_model xrt_hmd_parts::preferred |
Preferred disortion model, single value.
struct { ... } xrt_hmd_parts::screens[1] |
The hmd screen, right now hardcoded to one.
size_t xrt_hmd_parts::stride |
Stride of vertices.
size_t xrt_hmd_parts::total_num_indices |
Total number of indices.
float xrt_hmd_parts::undistort_r2_cutoff[2] |
Left/right.
float* xrt_hmd_parts::vertices |
Data.
struct xrt_view xrt_hmd_parts::views[2] |
Display information.
For now hardcoded display to two.
float xrt_hmd_parts::warp_scale |
Panotools warp scale.