Function TRAP::Graphics::RenderCommand::CaptureScreenshot#
Function Documentation#
-
TRAP::Scope<TRAP::Image> TRAP::Graphics::RenderCommand::CaptureScreenshot(const Window &window = *TRAP::Application::GetWindow())#
Capture a screenshot of the last presented frame.
Remark
Headless mode: This function is not available in headless mode.
- Parameters:
window – Window to take screenshot from. Default: Main Window.
- Returns:
Captured screenshot as TRAP::Image on success, nullptr otherwise.