]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/image.h
Move Image from mspgl to here
[libs/gui.git] / source / gbase / image.h
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GBASE_IMAGE_H_
9 #define MSP_GBASE_IMAGE_H_
10
11 #include <string>
12 #include "pixelformat.h"
13
14 namespace Msp {
15 namespace Graphics {
16
17 class Image
18 {
19 private:
20         unsigned id;
21
22 public:
23         Image();
24         ~Image();
25
26         void load_file(const std::string &);
27         void load_memory(const void *, unsigned);
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 Graphics
35 } // namespace Msp
36
37 #endif