#pragma once #include "utils.hpp" #include "types.hpp" #include "Result.hpp" namespace amalgine { class Image { DISABLE_COPY(Image) public: static Result loadFromFile(const char *filepath); ~Image(); const unsigned char* getData() const; i32 getWidth() const; i32 getHeight() const; private: Image(unsigned char *_imageData, i32 width, i32 height); private: unsigned char *imageData; i32 width; i32 height; }; }