summaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'image.h')
-rw-r--r--image.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/image.h b/image.h
new file mode 100644
index 0000000..41b0ed2
--- /dev/null
+++ b/image.h
@@ -0,0 +1,27 @@
+#ifndef IMAGE_H
+#define IMAGE_H
+
+#include <stdint.h>
+#include <string>
+
+class Image {
+ public:
+ Image();
+ Image(const std::string& filename);
+ ~Image();
+
+ void load(const std::string& filename);
+
+ unsigned int w() const;
+ unsigned int h() const;
+ unsigned int f() const;
+ const void* d() const;
+
+ protected:
+ unsigned int width;
+ unsigned int height;
+ unsigned int format;
+ void* data;
+};
+
+#endif