X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=image.hpp;fp=image.hpp;h=b6d79201bffddcca414605ef7d11ef1ff6104146;hp=0000000000000000000000000000000000000000;hb=c44e69ec78367fb2957324026894aef970f2481a;hpb=85f8f7278f24fe73fef1a19174376b155319072f diff --git a/image.hpp b/image.hpp new file mode 100644 index 0000000..b6d7920 --- /dev/null +++ b/image.hpp @@ -0,0 +1,20 @@ +#include +#include +#ifdef __APPLE__ +#include +#include +#endif + +class Image { + public: + Image(const std::string &path); + ~Image(); + unsigned char *data(); + GLfloat width() const; + GLfloat height() const; + private: + #ifdef __APPLE__ + CFDataRef dataRef; + GLfloat _width, _height; + #endif +};