gg: expose sapp_desc.swap_interval via gg.Config (#11975)
parent
956fdffd96
commit
970768288d
|
@ -198,6 +198,7 @@ pub fn new_context(cfg Config) &Context {
|
||||||
enable_dragndrop: cfg.enable_dragndrop
|
enable_dragndrop: cfg.enable_dragndrop
|
||||||
max_dropped_files: cfg.max_dropped_files
|
max_dropped_files: cfg.max_dropped_files
|
||||||
max_dropped_file_path_length: cfg.max_dropped_file_path_length
|
max_dropped_file_path_length: cfg.max_dropped_file_path_length
|
||||||
|
swap_interval: cfg.swap_interval
|
||||||
}
|
}
|
||||||
g.window = window
|
g.window = window
|
||||||
return g
|
return g
|
||||||
|
|
|
@ -63,9 +63,10 @@ pub:
|
||||||
resized_fn FNEvent = voidptr(0)
|
resized_fn FNEvent = voidptr(0)
|
||||||
scroll_fn FNEvent = voidptr(0)
|
scroll_fn FNEvent = voidptr(0)
|
||||||
// wait_events bool // set this to true for UIs, to save power
|
// wait_events bool // set this to true for UIs, to save power
|
||||||
fullscreen bool
|
fullscreen bool
|
||||||
scale f32 = 1.0
|
scale f32 = 1.0
|
||||||
sample_count int
|
sample_count int
|
||||||
|
swap_interval int = 1 // 1 = 60fps, 2 = 30fps etc. The preferred swap interval (ignored on some platforms)
|
||||||
// ved needs this
|
// ved needs this
|
||||||
// init_text bool
|
// init_text bool
|
||||||
font_path string
|
font_path string
|
||||||
|
|
Loading…
Reference in New Issue