rename .hpp headers to .h

This commit is contained in:
2017-01-31 22:48:55 +00:00
parent 4b26976d61
commit 39f44eca5e
19 changed files with 49 additions and 41 deletions

13
engine/image.h Normal file
View File

@@ -0,0 +1,13 @@
#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; }
};