]> git.tdb.fi Git - libs/gl.git/blob - source/ilwrap.h
Use DevIL for loading images
[libs/gl.git] / source / ilwrap.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_ILWRAP_H_
9 #define MSP_GL_ILWRAP_H_
10
11 #include "pixelformat.h"
12
13 namespace Msp {
14 namespace GL {
15
16 class Image
17 {
18 private:
19         unsigned id;
20
21         static bool init_done;
22
23 public:
24         Image();
25         ~Image();
26
27         void load(const std::string &);
28         PixelFormat get_format() const;
29         unsigned get_width() const;
30         unsigned get_height() const;
31         const void *get_data() const;
32 };
33
34 } // namespace GL
35 } // namespace Msp
36
37 #endif