2015-03-01 20:42:39 +00:00
|
|
|
#ifndef WIIIMAGE_HPP
|
|
|
|
#define WIIIMAGE_HPP
|
2013-03-21 20:20:29 +00:00
|
|
|
|
2015-08-05 22:20:15 +00:00
|
|
|
#include <memory>
|
2014-09-29 03:33:36 +00:00
|
|
|
#include "Athena/Types.hpp"
|
2013-03-21 20:20:29 +00:00
|
|
|
|
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
|
|
|
|
*/
|
2015-08-05 22:20:15 +00:00
|
|
|
WiiImage(atUint32 width, atUint32 height, std::unique_ptr<atUint8[]>&& data);
|
2013-03-21 20:20:29 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \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;
|
2015-08-05 22:20:15 +00:00
|
|
|
std::unique_ptr<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
|