22#ifndef MM_SHARED_XEEN_SPRITES_H
23#define MM_SHARED_XEEN_SPRITES_H
25#include "common/scummsys.h"
26#include "common/array.h"
27#include "common/file.h"
28#include "graphics/surface.h"
29#include "mm/shared/xeen/file.h"
30#include "mm/shared/xeen/xsurface.h"
42 SCALE_MASK = 0x7FFF, SCALE_ENLARGE = 0x8000
46 SPRFLAG_MODE_MASK = 0xF00, SPRFLAG_DRAWER1 = 0x100, SPRFLAG_DRAWER2 = 0x200,
47 SPRFLAG_DRAWER3 = 0x300, SPRFLAG_DRAWER4 = 0x400, SPRFLAG_DRAWER5 = 0x500, SPRFLAG_DRAWER6 = 0x600,
48 SPRFLAG_DRAWER7 = 0x700, SPRFLAG_800 = 0x800, SPRFLAG_SCENE_CLIPPED = 0x2000,
49 SPRFLAG_BOTTOM_CLIPPED = 0x4000, SPRFLAG_HORIZ_FLIPPED = 0x8000, SPRFLAG_RESIZE = 0x10000
55 uint16 _offset1, _offset2;
62 static int _clippedBottom;
73 const Common::Rect &bounds, uint flags = 0,
int scale = 0)
const;
111 uint flags = 0,
int scale = 0)
const;
134 return _index.
size();
141 return _index.
size() == 0;
size_type size() const
Definition: array.h:316
Definition: managed_surface.h:51
Common::Point getFrameSize(int frame) const
void draw(XSurface &dest, int frame, const Common::Point &destPos, uint flags=0, int scale=0) const
void load(const Common::Path &filename)
bool empty() const
Definition: sprites.h:140
static void setClippedBottom(int y)
Definition: sprites.h:148
void draw(XSurface &dest, int frame) const
void load(Common::SeekableReadStream &f)
SpriteResource & operator=(const SpriteResource &src)
void copy(const SpriteResource &src)
void draw(XSurface &dest, int frame, const Common::Point &destPos, const Common::Rect &bounds, uint flags=0, int scale=0) const
void draw(Graphics::ManagedSurface *dest, int frame, const Common::Point &destPos) const
size_t size() const
Definition: sprites.h:133
Definition: xsurface.h:45
Definition: detection.h:27