Skybox
[opengl.git] / image.hpp
diff --git a/image.hpp b/image.hpp
new file mode 100644 (file)
index 0000000..b6d7920
--- /dev/null
+++ b/image.hpp
@@ -0,0 +1,20 @@
+#include <iostream>
+#include <fstream>
+#ifdef __APPLE__
+#include <CoreGraphics/CoreGraphics.h>
+#include <GL/glew.h>
+#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
+};