Struct three_d::window::Window [−][src]
pub struct Window { /* fields omitted */ }
Expand description
Default window and event handler for easy setup.
Implementations
Constructs a new window with the given settings.
pub fn render_loop<F: 'static>(self, callback: F) -> Result<(), Box<dyn Error>> where
F: FnMut(FrameInput) -> FrameOutput,
pub fn render_loop<F: 'static>(self, callback: F) -> Result<(), Box<dyn Error>> where
F: FnMut(FrameInput) -> FrameOutput,
Start the main render loop which calls the callback
closure each frame.
Return the current logical size of the window.
Returns the current viewport of the window in physical pixels (the size of the screen).