Function TRAP::Graphics::RenderCommand::SetScissor#

Function Documentation#

void TRAP::Graphics::RenderCommand::SetScissor(u32 x, u32 y, u32 width, u32 height, const Window &window = *TRAP::Application::GetWindow())#

Set scissor 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 – Scissor width.

  • height – Scissor height.

  • windowWindow to set scissor size for. Default: Main Window.