Function TRAP::Graphics::RenderCommand::SetClearColor#

Function Documentation#

void TRAP::Graphics::RenderCommand::SetClearColor(const RendererAPI::Color &color = {0.1, 0.1, 0.1, 1.0}, const Window &window = *TRAP::Application::GetWindow())#

Set the clear color for the given window.

Remark

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

Parameters:
  • color – New clear color. Default: Very dark gray.

  • windowWindow to set clear color for. Default: Main Window.