Function TRAP::Graphics::RenderCommand::SetDepthFunction#

Function Documentation#

void TRAP::Graphics::RenderCommand::SetDepthFunction(CompareMode compareMode = CompareMode::Less, const Window &window = *TRAP::Application::GetWindow())#

Set depth function for the given window.

Remark

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

Parameters:
  • compareMode – Depth compare mode. Default: CompareMode::Less.

  • windowWindow to set depth function for. Default: Main Window.