2014-06-18 04:51:18 +00:00
|
|
|
#ifndef ATHENA_NO_SAVES
|
2014-04-20 09:14:15 +00:00
|
|
|
// This file is part of libAthena.
|
2013-03-21 20:20:29 +00:00
|
|
|
//
|
2014-04-20 09:14:15 +00:00
|
|
|
// libAthena is free software: you can redistribute it and/or modify
|
2013-03-21 20:20:29 +00:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
2014-04-20 09:14:15 +00:00
|
|
|
// libAthena is distributed in the hope that it will be useful,
|
2013-03-21 20:20:29 +00:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2014-04-20 09:14:15 +00:00
|
|
|
// along with libAthena. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
|
2013-03-21 20:20:29 +00:00
|
|
|
#ifndef __WIIIMAGE_HPP__
|
|
|
|
#define __WIIIMAGE_HPP__
|
|
|
|
|
|
|
|
#include "Types.hpp"
|
|
|
|
|
2014-04-20 09:14:15 +00:00
|
|
|
namespace Athena
|
2013-07-21 07:49:07 +00:00
|
|
|
{
|
|
|
|
|
2013-03-21 20:20:29 +00:00
|
|
|
/*!
|
|
|
|
* \brief The WiiImage class
|
|
|
|
*/
|
|
|
|
class WiiImage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/*!
|
|
|
|
* \brief WiiImage
|
|
|
|
*/
|
|
|
|
WiiImage();
|
|
|
|
/*!
|
|
|
|
* \brief WiiImage
|
|
|
|
* \param width
|
|
|
|
* \param height
|
|
|
|
* \param data
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
WiiImage(atUint32 width, atUint32 height, atUint8* data);
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief ~WiiImage
|
|
|
|
*/
|
|
|
|
~WiiImage();
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setWidth
|
|
|
|
* \param width
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
void setWidth(const atUint32 width);
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief width
|
|
|
|
* \return
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint32 width() const;
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setHeight
|
|
|
|
* \param height
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
void setHeight(const atUint32 height);
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief height
|
|
|
|
* \return
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint32 height() const;
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setData
|
|
|
|
* \param data
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
void setData(const atUint8* data);
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief data
|
|
|
|
* \return
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint8* data();
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief toRGBA
|
|
|
|
* \return
|
|
|
|
*/
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint8* toRGBA();
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
private:
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint32 m_width;
|
|
|
|
atUint32 m_height;
|
|
|
|
atUint8* m_data;
|
2013-03-21 20:20:29 +00:00
|
|
|
};
|
|
|
|
|
2013-07-21 07:49:07 +00:00
|
|
|
} // zelda
|
|
|
|
|
2013-03-21 20:20:29 +00:00
|
|
|
#endif // WIIIMAGE_HPP
|
2014-06-18 04:51:18 +00:00
|
|
|
#endif // ATHENA_NO_SAVES
|