Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions window.v
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub:
on_event fn (e &Event, mut w Window) = fn (_ &Event, mut _ Window) {} // global event hook; fires for all events
log_level log.Level = default_log_level()
debug_layout bool // print layout timing stats to stdout each frame
sample_count int = 1 // MSAA sample count (1 = off; 4 antialiases draw_canvas lines/polygons)
}

fn default_log_level() log.Level {
Expand Down Expand Up @@ -131,6 +132,7 @@ pub fn window(cfg &WindowCfg) &Window {
width: cfg.width
height: cfg.height
window_title: cfg.title
sample_count: cfg.sample_count
event_fn: event_fn
enable_dragndrop: cfg.dragndrop
max_dropped_files: int(cfg.dragndrop_files_max)
Expand Down