Monado OpenXR Runtime
u_cardboard_distortion_arguments Struct Reference

These are the values that you need to supply to the distortion code to setup a u_cardboard_distortion properly. More...

#include <util/u_distortion.h>

Collaboration diagram for u_cardboard_distortion_arguments:

Data Fields

float distortion_k [5]
 
struct {
   uint32_t   w_pixels
 
   uint32_t   h_pixels
 
   float   w_meters
 
   float   h_meters
 
screen
 
float inter_lens_distance_meters
 Distances between the lenses in meters. More...
 
float screen_to_lens_distance_meters
 The distance to the lens from the screen, used to calculate calculate tanangle of various distances on the screen. More...
 
float tray_to_lens_distance_meters
 The distance from the tray (the bottom of the screen) to the lens center on the Y axis. More...
 
struct xrt_fov fov
 Fov values that the cardboard configuration has given us. More...
 

Detailed Description

These are the values that you need to supply to the distortion code to setup a u_cardboard_distortion properly.

Field Documentation

◆ fov

struct xrt_fov u_cardboard_distortion_arguments::fov

Fov values that the cardboard configuration has given us.

◆ inter_lens_distance_meters

float u_cardboard_distortion_arguments::inter_lens_distance_meters

Distances between the lenses in meters.

◆ screen_to_lens_distance_meters

float u_cardboard_distortion_arguments::screen_to_lens_distance_meters

The distance to the lens from the screen, used to calculate calculate tanangle of various distances on the screen.

◆ tray_to_lens_distance_meters

float u_cardboard_distortion_arguments::tray_to_lens_distance_meters

The distance from the tray (the bottom of the screen) to the lens center on the Y axis.


The documentation for this struct was generated from the following file: