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 lens_y_center_on_screen_meters
 Where on the y axis the center of the lens is on the screen. 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...
 
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.

◆ lens_y_center_on_screen_meters

float u_cardboard_distortion_arguments::lens_y_center_on_screen_meters

Where on the y axis the center of the lens is on the screen.

◆ 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.


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