mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-22 00:50:45 +03:00
24 lines
380 B
C++
24 lines
380 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <vector>
|
|
|
|
namespace progressia::main {
|
|
|
|
class Image {
|
|
public:
|
|
using Byte = unsigned char;
|
|
|
|
std::size_t width;
|
|
std::size_t height;
|
|
std::vector<Byte> data;
|
|
|
|
std::size_t getSize() const;
|
|
const Byte *getData() const;
|
|
Byte *getData();
|
|
};
|
|
|
|
Image loadImage(const std::string &);
|
|
|
|
} // namespace progressia::main
|