mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-08-28 21:06:50 +03:00
Initial commit
This commit is contained in:
25
main/rendering/image.h
Normal file
25
main/rendering/image.h
Normal 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
|
Reference in New Issue
Block a user