add some hacky code to allow passing sfc files with -b
[openc2e.git] / bmpImage.h
blob11e1874ef51b747be752ff7ad493f35feee66c8f
1 /*
2 * bmpImage.h
3 * openc2e
5 * Created by Alyssa Milburn on Wed Feb 20 2008.
6 * Copyright (c) 2008 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 #ifndef _BMPIMAGE_H
21 #define _BMPIMAGE_H
23 #include "creaturesImage.h"
24 #include "mmapifstream.h"
25 #include "endianlove.h"
27 class bmpImage : public creaturesImage {
28 protected:
29 uint32 biWidth, biHeight;
30 void *bmpdata;
32 void freeData();
34 public:
35 bmpImage(mmapifstream *, std::string n);
36 ~bmpImage();
38 void setBlockSize(unsigned int blockwidth, unsigned int blockheight);
41 #endif
42 /* vim: set noet: */