pub fn current_platform(headless: bool) -> Rc<dyn Platform>Expand description
Returns the default platform implementation for the current OS.
A windowed platform connects to the display server the process environment names, or starts headless when it names none, and can switch between those modes later. A headless platform stays headless.