Function TRAP::Graphics::RenderCommand::SetViewport# Function Documentation# void TRAP::Graphics::RenderCommand::SetViewport(u32 x, u32 y, u32 width, u32 height, const Window &window = *TRAP::Application::GetWindow())# Set viewport size for the given window. Remark Headless mode: This function is not available in headless mode. Parameters: x – Upper left corner. Default: 0. y – Upper left corner. Default: 0. width – Viewport width. height – Viewport height. window – Window to set viewport size for. Default: Main Window.