#pragma once #include "../../Common/Sizes.hpp" #include #include namespace MC::GFX::Image { class RawImage { public: RawImage() : m_width(0), m_height(0) {} RawImage(U32 width, U32 height) : m_width(width), m_height(height) { m_pixels.reserve(width * height); } struct Pixel { U8 r, g, b, a; }; void add(Pixel pixel); USize size() const; U8* raw() const; U32 width() const; U32 height() const; std::string string() const; private: std::vector m_pixels; U32 m_width, m_height; }; }