1use repose_core::present_mode::PresentModePref;
2
3#[derive(Clone, Copy, Debug)]
5pub struct ReposeOptions {
6 pub msaa_samples: u32,
7 pub max_fps: Option<f32>,
8 pub present_mode: PresentModePref,
9}
10
11impl Default for ReposeOptions {
12 fn default() -> Self {
13 Self {
14 msaa_samples: 4,
15 max_fps: None,
16 present_mode: PresentModePref::Auto,
17 }
18 }
19}
20
21#[derive(Clone, Debug)]
23pub struct AppConfig {
24 pub common: ReposeOptions,
25 pub window_title: String,
26 pub window_size: (u32, u32),
27 pub enable_inspector: bool,
28}
29
30impl Default for AppConfig {
31 fn default() -> Self {
32 Self {
33 common: ReposeOptions::default(),
34 window_title: "Repose".to_string(),
35 window_size: (1280, 800),
36 enable_inspector: true,
37 }
38 }
39}
40
41#[derive(Clone, Copy, Debug)]
43#[derive(Default)]
44pub struct AndroidOptions {
45 pub continuous_redraw: bool,
46 pub ime_height_px: Option<f32>,
47 pub common: ReposeOptions,
48}
49