add a followviewport bool to uncontrolled_sounds, so that the c1 music doesn't get...
[openc2e.git] / sprImage.h
blob8f2992bcc7ecaa9041ebeabb974f9416800e11b3
1 /*
2 * sprImage.h
3 * openc2e
5 * Created by Alyssa Milburn on Sun Nov 19 2006.
6 * Copyright (c) 2006 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 _SPRIMAGE_H
21 #define _SPRIMAGE_H
23 #include "creaturesImage.h"
24 #include "mmapifstream.h"
25 #include "endianlove.h"
27 class sprImage : public creaturesImage {
28 private:
29 uint32 *offsets;
31 public:
32 sprImage() { }
33 sprImage(mmapifstream *, std::string n);
34 ~sprImage();
35 virtual unsigned int bitdepth() { return 8; }
36 bool transparentAt(unsigned int frame, unsigned int x, unsigned int y);
37 void fixBufferOffsets();
40 #endif
41 /* vim: set noet: */