Files
projecte_2026/source/core/rendering/screenshot.hpp
Sergio Valor 234ae82f56 - afegides les habitacions de tot el joc (buides)
- minimapa mostra els numeros d'habitacio
- tecla per a fer captures de pantalla
2026-04-12 10:25:12 +02:00

16 lines
423 B
C++

#pragma once
#include <SDL3/SDL.h>
#include <string> // Para string
class Surface;
namespace Screenshot {
// Guarda la surface como PNG en screenshots/. Retorna el nombre del fichero o "" si falla.
auto save(const Surface& surface) -> std::string;
// Guarda un buffer ARGB8888 como PNG en screenshots/.
auto save(const Uint32* buffer, int width, int height) -> std::string;
} // namespace Screenshot