22 #ifndef ULTIMA_SPRITES_H 23 #define ULTIMA_SPRITES_H 25 #include "common/array.h" 26 #include "common/path.h" 27 #include "graphics/managed_surface.h" 28 #include "ultima/shared/core/rect.h" 56 Sprite(
const byte *src, uint bpp, uint16
w = 16, uint16
h = 16);
71 uint16
w()
const {
return _surface.
w; }
76 uint16
h()
const {
return _surface.
h; }
106 void load(
const Common::Path &name, uint bpp, uint16
w = 16, uint16
h = 16);
126 bool empty()
const {
return size() == 0; }
Definition: managed_surface.h:51
size_t size() const
Definition: sprites.h:121
byte * getPixels()
Definition: sprites.h:81
int16 & w
Definition: managed_surface.h:117
const byte * getBasePtr(int16 x, int16 y) const
Definition: sprites.h:91
const void * getBasePtr(int x, int y) const
Definition: managed_surface.h:250
virtual ~Sprites()
Definition: sprites.h:111
Sprite & operator=(const Sprite &src)
Definition: detection.h:27
int16 & h
Definition: managed_surface.h:118
void * getPixels()
Definition: managed_surface.h:269
Point getSpriteSize() const
Definition: sprites.h:116
size_type size() const
Definition: array.h:315
byte * getBasePtr(int16 x, int16 y)
Definition: sprites.h:86
uint16 h() const
Definition: sprites.h:76
bool empty() const
Definition: sprites.h:126
virtual Sprite & operator[](uint idx)
Definition: sprites.h:131
void draw(Graphics::ManagedSurface &dest, const Common::Point &pt)
uint16 w() const
Definition: sprites.h:71