#pragma once class Image { std::unique_ptr m_data; public: int width; int height; int comp; bool load(std::string filename); const uint8_t* data() const { return m_data.get(); } int size() const { return width * height * comp; } };