1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use VRFieldOfView;
#[derive(Debug, Clone)]
#[cfg_attr(feature = "serde-serialization", derive(Deserialize, Serialize))]
pub struct VREyeParameters {
pub offset: [f32; 3],
pub render_width: u32,
pub render_height: u32,
pub field_of_view: VRFieldOfView
}
impl Default for VREyeParameters {
fn default() -> VREyeParameters {
VREyeParameters {
offset: [0.0, 0.0, 0.0],
render_width: 0,
render_height: 0,
field_of_view: VRFieldOfView::default()
}
}
}