Initial commit

This commit is contained in:
2022-10-09 17:25:45 +03:00
commit da10f7c5cd
60 changed files with 6255 additions and 0 deletions

25
main/rendering/image.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <filesystem>
#include <vector>
namespace progressia {
namespace 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::filesystem::path &);
} // namespace main
} // namespace progressia