#pragma once #include "../global/base.h" class Image { public: Image(const int& width = 0, const int& height = 0, RGBA* data = nullptr); ~Image(); RGBA GetColor(const float& p_u, const float& p_v); static Image* CreateImage(const std::string& path); static void DestroyImage(Image* image); std::pair GetSize() { return std::make_pair(m_width, m_height); } private: int m_width{ 0 }; int m_height{ 0 }; RGBA* m_data{ nullptr }; };