]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ilwrap.h
Use DevIL for loading images
[libs/gl.git] / source / ilwrap.h
diff --git a/source/ilwrap.h b/source/ilwrap.h
new file mode 100644 (file)
index 0000000..7b3766a
--- /dev/null
@@ -0,0 +1,37 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GL_ILWRAP_H_
+#define MSP_GL_ILWRAP_H_
+
+#include "pixelformat.h"
+
+namespace Msp {
+namespace GL {
+
+class Image
+{
+private:
+       unsigned id;
+
+       static bool init_done;
+
+public:
+       Image();
+       ~Image();
+
+       void load(const std::string &);
+       PixelFormat get_format() const;
+       unsigned get_width() const;
+       unsigned get_height() const;
+       const void *get_data() const;
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif