Module window

Source
Expand description

Window and associated to window rendering context related functions.

Re-exports§

pub use miniquad;

Structs§

Conf
Describes a hardware and platform-specific setup.
InternalGlContext

Functions§

clear_background
Fill window background with solid color. Note: even when “clear_background” was not called explicitly screen will be cleared at the beginning of the frame.
get_internal_gl
next_frame
Block execution until the next frame.
request_new_screen_size
Request the window size to be the given value. This takes DPI into account.
screen_dpi_scale
screen_height
screen_width
set_fullscreen
Toggle whether the window is fullscreen.
set_panic_handler
With set_panic_handler set to a handler code, macroquad will use std::panic::catch_unwind on user code to catch some panics.