29 #define SPRITE_ZMAX 16 30 #define SPRITE_ZMASK 0x0F 40 SpriteInfo() : width(0), height(0), xAlign(0), yAlign(0), keepMask(0) {
48 SpriteList _mainSprites;
49 SpriteList _saveReminderSprites;
50 SpriteList _arrowSprites;
51 SpriteList _inventorySprites;
57 void drawOccluded(SpriteList &spriteList, uint spriteNumber,
const Point &screenCoord,
int scale,
int depth);
60 void draw(SpriteList &spriteList, uint spriteNumber,
const Point &screenCoord,
int scale,
bool clipToScene =
false);
63 void drawClip(
const Point &spritePointer,
int width,
int height,
const byte *spriteBuffer,
bool clipToScene =
false, byte keepMask = 0);
65 void draw(SpriteList &spriteList, uint spriteNumber,
const Rect &screenRect,
int scale,
bool clipToScene =
false);
67 void loadList(
int resourceId, SpriteList &spriteList, byte keepMask = 0);
68 bool hitTest(SpriteList &spriteList, uint spriteNumber,
const Point &screenCoord,
int scale,
const Point &testPoint);
69 void getScaledSpriteBuffer(SpriteList &spriteList, uint spriteNumber,
int scale,
int &width,
int &height,
int &xAlign,
int &yAlign,
const byte *&buffer);
72 void decodeRLEBuffer(
const byte *inputBuffer,
size_t inLength,
size_t outLength);
73 void scaleBuffer(
const byte *src,
int width,
int height,
int scale,
size_t outLength);
Definition: resource.h:105
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)