mirror of
https://github.com/wiiu-env/ScreenshotWUPS.git
synced 2024-06-27 12:26:01 +02:00
14 lines
532 B
C++
14 lines
532 B
C++
#pragma once
|
|
|
|
#include "common.h"
|
|
#include "utils/logger.h"
|
|
#include <gx2/surface.h>
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
bool saveTextureAsPicture(const std::string &path, uint8_t *sourceBuffer, uint32_t width, uint32_t height, uint32_t pitch, GX2SurfaceFormat format, ImageOutputFormatEnum outputFormat, bool convertRGBtoSRGB, int quality);
|
|
|
|
|
|
bool takeScreenshot(GX2ColorBuffer *srcBuffer, GX2ScanTarget scanTarget, GX2SurfaceFormat outputBufferSurfaceFormat, ImageOutputFormatEnum outputFormat, int quality);
|