17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-26 15:54:53 +01:00
Files
maszyna/rendering/screenshot.h

10 lines
366 B
C++

class screenshot_manager
{
static void screenshot_save_thread(char *img , int w, int h);
public:
// writes an image of the window to a png file in the directory of the screenshots, on a thread of its own. Image: rgb rows,
// tightly packed, the bottom one first (taken over and deleted by the thread)
static void save(char *Image, int Width, int Height);
};