tacraft/image.hpp

16 lines
303 B
C++
Raw Permalink Normal View History

2022-12-15 02:28:00 +00:00
#ifndef _IMAGE_HPP_
#define _IMAGE_HPP_
#include <memory>
class Image {
public:
static std::shared_ptr<Image> load_from_file(const char* filename);
virtual ~Image() = default;
virtual std::pair<int32_t, int32_t> img_size() = 0;
virtual const unsigned char* img_data() = 0;
};
#endif