Files
panopainter/engine/image.hpp
Omar Mohamed Ali Mudhir 13d8e6e563 base setup for osx in place
2017-01-14 18:30:19 +00:00

14 lines
272 B
C++

#pragma once
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; }
};