// Luanti // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2013 celeron55, Perttu Ahola #pragma once #include namespace video { class IVideoDriver; } /** * Take a screenshot and save it to disk * @param driver Video driver to use for the screenshot * @param filename_out Output parameter that receives the path to the saved screenshot * @return true if the screenshot was saved successfully, false otherwise */ bool takeScreenshot(video::IVideoDriver *driver, std::string &filename_out);