try to make build portable: remove SDL_mixer dependency, remove -f from cp command...
[openc2e.git] / c16Image.h
blob065dadab22b0bd37a7fb11322354803e770bf351
1 /*
2 * c16Image.h
3 * openc2e
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"
21 #include <istream>
22 #include "mmapifstream.h"
23 #include "endianlove.h"
25 class c16Image : public creaturesImage {
26 private:
27 unsigned int **lineoffsets;
29 public:
30 c16Image() { }
31 c16Image(mmapifstream *, std::string n);
32 ~c16Image();
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 {
39 private:
40 uint32 *offsets;
42 public:
43 s16Image() { }
44 s16Image(mmapifstream *, std::string n);
45 ~s16Image();
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;
56 /* vim: set noet: */