#pragma once #include struct Color{ float r, g, b; Color(); Color(float r, float g, float b); ~Color(); }; class Image{ public: Image(int width, int height); ~Image(); Color GetColor(int x, int y) const; void SetColor(const Color& color, int x, int y); void Export(const char* path) const; private: int m_width; int m_height; std::vector m_colors; };