]> git.tdb.fi Git - libs/gl.git/blob - source/ilwrap.h
Unbind vertex buffer after updating array data
[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 public:
22         Image();
23         ~Image();
24
25         void load_file(const std::string &);
26         void load_lump(const void *, unsigned);
27         PixelFormat get_format() const;
28         unsigned get_width() const;
29         unsigned get_height() const;
30         const void *get_data() const;
31 };
32
33 } // namespace GL
34 } // namespace Msp
35
36 #endif