Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
380 B · 15 lines
C
12345678910111213141516#pragma once#include <GfxRenderer.h>
#include <cstddef>
#include "ScreenshotInfo.h"
class ScreenshotUtil { public: static void takeScreenshot(GfxRenderer& renderer); static bool saveFramebufferAsBmp(const char* filename, const uint8_t* framebuffer, int width, int height);
private: static void buildFilename(const ScreenshotInfo& info, char* buf, size_t bufSize);};