#pragma once #include namespace hd2d { // Reads the current backbuffer (before swap) and writes it as PNG. bool saveScreenshot(const std::string& path, int width, int height); } // namespace hd2d