rename .hpp headers to .h
This commit is contained in:
13
engine/image.h
Normal file
13
engine/image.h
Normal 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; }
|
||||
};
|
||||
Reference in New Issue
Block a user