2012-01-06 22:29:45 +00:00
|
|
|
/* ResidualVM - A 3D game interpreter
|
2008-06-13 14:57:47 +00:00
|
|
|
*
|
2012-01-06 22:29:45 +00:00
|
|
|
* ResidualVM is the legal property of its developers, whose names
|
2011-04-16 12:12:44 +00:00
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
2008-06-13 14:57:47 +00:00
|
|
|
* file distributed with this source distribution.
|
2006-04-02 14:20:45 +00:00
|
|
|
*
|
2012-12-19 22:15:43 +00:00
|
|
|
* 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.
|
2014-04-05 16:18:42 +00:00
|
|
|
*
|
2012-12-19 22:15:43 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2006-04-02 14:20:45 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-12-19 22:15:43 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-04-05 16:18:42 +00:00
|
|
|
*
|
2012-12-19 22:15:43 +00:00
|
|
|
* 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.
|
2006-04-02 14:20:45 +00:00
|
|
|
*
|
|
|
|
*/
|
2003-08-15 18:00:22 +00:00
|
|
|
|
2009-05-26 09:39:42 +00:00
|
|
|
#ifndef GRIM_COLORMAP_H
|
|
|
|
#define GRIM_COLORMAP_H
|
2003-08-15 18:00:22 +00:00
|
|
|
|
2012-03-27 03:12:00 +00:00
|
|
|
#include "common/str.h"
|
|
|
|
|
2011-03-20 21:16:27 +00:00
|
|
|
#include "engines/grim/object.h"
|
2003-08-15 18:00:22 +00:00
|
|
|
|
2011-12-17 17:41:38 +00:00
|
|
|
namespace Common {
|
|
|
|
class SeekableReadStream;
|
|
|
|
}
|
|
|
|
|
2009-05-25 06:49:57 +00:00
|
|
|
namespace Grim {
|
|
|
|
|
2011-03-20 21:16:27 +00:00
|
|
|
class CMap : public Object {
|
2003-08-15 18:00:22 +00:00
|
|
|
public:
|
2004-02-24 21:09:53 +00:00
|
|
|
// Load a colormap from the given data.
|
2011-12-17 17:41:38 +00:00
|
|
|
CMap(const Common::String &fileName, Common::SeekableReadStream *data);
|
2011-05-14 00:55:14 +00:00
|
|
|
~CMap();
|
2011-05-22 04:02:20 +00:00
|
|
|
const Common::String &getFilename() const { return _fname; }
|
2003-08-15 18:00:22 +00:00
|
|
|
|
2004-02-24 21:09:53 +00:00
|
|
|
// The color data, in RGB format
|
2004-12-09 23:55:43 +00:00
|
|
|
char _colors[256 * 3];
|
2009-06-26 16:13:11 +00:00
|
|
|
Common::String _fname;
|
2011-03-20 21:16:27 +00:00
|
|
|
|
2011-05-14 00:55:14 +00:00
|
|
|
bool operator==(const CMap &c) const;
|
2003-08-15 18:00:22 +00:00
|
|
|
};
|
|
|
|
|
2009-05-25 06:49:57 +00:00
|
|
|
} // end of namespace Grim
|
|
|
|
|
2003-08-15 18:00:22 +00:00
|
|
|
#endif
|