base setup for osx in place

This commit is contained in:
Omar Mohamed Ali Mudhir
2017-01-14 18:30:19 +00:00
commit 13d8e6e563
18 changed files with 1143 additions and 0 deletions

13
engine/image.hpp 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; }
};