10 lines
209 B
C++
10 lines
209 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
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
|