[][src]Function blaze_rs::set_viewport

pub fn set_viewport(width: u32, height: u32) -> CallResult

Sets viewport dimensions. All sprite position and size calculations will be based on them. In most cases, you should pass the window size in pixels here, or a scaled value for pixel-art based games, for example.