ScummVM API documentation
sprites.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef XEEN_SPRITES_H
23 #define XEEN_SPRITES_H
24 
25 #include "mm/shared/xeen/sprites.h"
26 #include "mm/shared/xeen/xsurface.h"
27 
28 namespace MM {
29 namespace Xeen {
30 
31 using namespace Shared::Xeen;
32 
34 private:
38  void draw(int windowNum, int frame, const Common::Point &destPos,
39  const Common::Rect &bounds, uint flags = 0, int scale = 0);
40 
41 public:
43  SpriteResource(const Common::Path &filename) :
44  Shared::Xeen::SpriteResource(filename) {}
45  SpriteResource(const Common::Path &filename, int ccMode);
46 
50  void load(const Common::Path &filename) {
52  }
53 
57  void load(const Common::Path &filename, int ccMode);
58 
68  void draw(Shared::Xeen::XSurface &dest, int frame, const Common::Point &destPos,
69  uint flags = 0, int scale = 0) {
70  Shared::Xeen::SpriteResource::draw(dest, frame, destPos, flags, 0);
71  }
72 
78  void draw(Shared::Xeen::XSurface &dest, int frame) {
80  }
81 
85  void draw(Graphics::ManagedSurface *dest, int frame, const Common::Point &destPos) {
86  Shared::Xeen::SpriteResource::draw(dest, frame, destPos);
87  }
88 
98  void draw(Window &dest, int frame, const Common::Point &destPos,
99  uint flags = 0, int scale = 0);
100 
106  void draw(int windowIndex, int frame);
107 
117  void draw(int windowIndex, int frame, const Common::Point &destPos,
118  uint flags = 0, int scale = 0);
119 };
120 
121 using namespace MM::Shared;
122 
123 } // End of namespace Xeen
124 } // End of namespace MM
125 
126 #endif
Definition: managed_surface.h:51
Definition: xsurface.h:45
void load(Common::SeekableReadStream &f)
void draw(Shared::Xeen::XSurface &dest, int frame)
Definition: sprites.h:78
Definition: sprites.h:52
Definition: rect.h:144
Definition: path.h:52
void draw(Graphics::ManagedSurface *dest, int frame, const Common::Point &destPos)
Definition: sprites.h:85
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: cc_archive.h:29
Definition: detection.h:27
Definition: rect.h:45
void load(const Common::Path &filename)
Definition: sprites.h:50
void draw(Shared::Xeen::XSurface &dest, int frame, const Common::Point &destPos, uint flags=0, int scale=0)
Definition: sprites.h:68
Definition: window.h:84
void draw(XSurface &dest, int frame, const Common::Point &destPos, const Common::Rect &bounds, uint flags=0, int scale=0) const