5 * Created by Alyssa Milburn on Sat May 22 2004.
6 * Copyright (c) 2004 Alyssa Milburn. All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
20 #include "creaturesImage.h"
22 #include "mmapifstream.h"
23 #include "endianlove.h"
25 class c16Image
: public creaturesImage
{
27 unsigned int **lineoffsets
;
31 c16Image(mmapifstream
*, std::string n
);
33 void readHeader(std::istream
&in
);
34 boost::shared_ptr
<creaturesImage
> mutableCopy();
35 bool transparentAt(unsigned int frame
, unsigned int x
, unsigned int y
);
38 class s16Image
: public creaturesImage
{
44 s16Image(mmapifstream
*, std::string n
);
46 void readHeader(std::istream
&in
);
47 void writeHeader(std::ostream
&out
);
48 boost::shared_ptr
<creaturesImage
> mutableCopy();
49 void tint(unsigned char r
, unsigned char g
, unsigned char b
, unsigned char rotation
, unsigned char swap
);
50 bool transparentAt(unsigned int frame
, unsigned int x
, unsigned int y
);
52 friend class c16Image
;
53 friend class fileSwapper
;