Function TRAP::Graphics::RenderCommand::SetRenderScale#

Function Documentation#

void TRAP::Graphics::RenderCommand::SetRenderScale(f32 scale, const Window &window = *TRAP::Application::GetWindow())#

Set the render scale for the given window.

Remark

Headless mode: This function is not available in headless mode.

Note

This functon takes effect on the next frame onwards.

Parameters:
  • scale – Render scale value (valid range: 0.5f-1.0f inclusive).

  • windowWindow to set render scale for. Default: Main Window.