Function TRAP::Graphics::RenderCommand::GetRenderScale#

Function Documentation#

f32 TRAP::Graphics::RenderCommand::GetRenderScale(const Window &window = *TRAP::Application::GetWindow())#

Retrieve the used render scale value of the given window.

Remark

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

Parameters:

windowWindow to retrieve render scale from. Default: Main Window.

Returns:

Render scale (between 0.5f and 2.0f inclusive).