2013-10-13 02:42:09 +01:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* 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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PRINCE_MHWANH_H
|
|
|
|
#define PRINCE_MHWANH_H
|
|
|
|
|
2014-03-29 22:23:20 +01:00
|
|
|
#include "image/image_decoder.h"
|
|
|
|
#include "image/bmp.h"
|
2014-08-01 17:38:04 +02:00
|
|
|
|
2013-10-22 01:05:24 +01:00
|
|
|
#include "graphics/surface.h"
|
2014-08-01 17:38:04 +02:00
|
|
|
|
2013-12-05 00:02:31 +00:00
|
|
|
#include "resource.h"
|
2013-10-13 02:42:09 +01:00
|
|
|
|
|
|
|
namespace Prince {
|
|
|
|
|
2014-03-29 22:23:20 +01:00
|
|
|
class MhwanhDecoder : public Image::ImageDecoder {
|
2013-10-13 02:42:09 +01:00
|
|
|
public:
|
2013-11-04 11:28:10 +00:00
|
|
|
MhwanhDecoder();
|
|
|
|
virtual ~MhwanhDecoder();
|
2013-10-13 02:42:09 +01:00
|
|
|
|
2013-11-04 11:28:10 +00:00
|
|
|
// ImageDecoder API
|
|
|
|
void destroy();
|
|
|
|
virtual bool loadStream(Common::SeekableReadStream &stream);
|
2014-06-06 03:21:47 +02:00
|
|
|
virtual Graphics::Surface *getSurface() const { return _surface; }
|
2013-11-18 16:19:21 +00:00
|
|
|
virtual const byte *getPalette() const { return _palette; }
|
2014-08-01 17:38:04 +02:00
|
|
|
uint16 getPaletteCount() const { return kPaletteColorCount; }
|
|
|
|
static const uint16 kPaletteColorCount = 256;
|
2013-10-13 02:42:09 +01:00
|
|
|
|
|
|
|
private:
|
2013-11-04 11:28:10 +00:00
|
|
|
Graphics::Surface *_surface;
|
|
|
|
byte *_palette;
|
2013-10-13 02:42:09 +01:00
|
|
|
};
|
|
|
|
|
2014-08-01 17:38:04 +02:00
|
|
|
} // End of namespace Prince
|
2013-10-13 02:42:09 +01:00
|
|
|
|
|
|
|
#endif
|