Athena IO Library
WiiImage.hpp
1 #ifndef ATHENA_NO_SAVES
2 // This file is part of libAthena.
3 //
4 // libAthena is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // libAthena is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with libAthena. If not, see <http://www.gnu.org/licenses/>
16 
17 #ifndef WIIIMAGE_HPP
18 #define WIIIMAGE_HPP
19 
20 #include "Athena/Types.hpp"
21 
22 namespace Athena
23 {
24 
28 class WiiImage
29 {
30 public:
34  WiiImage();
41  WiiImage(atUint32 width, atUint32 height, atUint8* data);
42 
46  ~WiiImage();
47 
52  void setWidth(const atUint32 width);
53 
58  atUint32 width() const;
59 
64  void setHeight(const atUint32 height);
65 
70  atUint32 height() const;
71 
76  void setData(const atUint8* data);
77 
82  atUint8* data();
83 
88  atUint8* toRGBA();
89 
90 private:
91  atUint32 m_width;
92  atUint32 m_height;
93  atUint8* m_data;
94 };
95 
96 } // zelda
97 
98 #endif // WIIIMAGE_HPP
99 #endif // ATHENA_NO_SAVES
The WiiImage class.
Definition: WiiImage.hpp:28
atUint32 width() const
width
atUint8 * data()
data
atUint8 * toRGBA()
toRGBA
WiiImage()
WiiImage.
void setHeight(const atUint32 height)
setHeight
void setWidth(const atUint32 width)
setWidth
atUint32 height() const
height
~WiiImage()
~WiiImage
void setData(const atUint8 *data)
setData