Expand description
Window creation, event translation and frame presentation for desktop and web targets.
This crate is the only place that talks to the operating system’s windowing layer. It owns the run loop and hands each frame to the chosen renderer.
Structs§
- Adapter
Summary - The GPU adapter a window presents through, as plain strings.
- Present
Stats - What the last present did.
- Present
Stats Handle - A shared slot the platform writes the latest
PresentStatsinto. - Window
Options - The settings a window opens with.
Enums§
- Platform
Error - Something that stopped a window from opening, running or presenting a frame.
- Renderer
Choice - Which renderer a window presents with.
Constants§
- RENDERER_
ENVIRONMENT - The environment variable that overrides the renderer choice.
Functions§
- run
- Opens a window and runs frames until the window closes.
- run_
with - Opens a window, hands the app to
configure, and runs frames until the window closes.