Files
panopainter/engine/image.h

18 lines
291 B
C++

#pragma once
namespace ui {
class Image
{
std::unique_ptr<uint8_t[]> 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; }
};
}