35 #ifndef CRAB_IMAGEMANAGER_H 36 #define CRAB_IMAGEMANAGER_H 38 #include "crab/image/Image.h" 39 #include "crab/TMX/TMXTileSet.h" 41 #include "common/hashmap.h" 46 typedef uint ImageKey;
49 #define loadImgKey loadNum 51 namespace pyrodactyl {
66 TextureMap _map[MAP_TOTAL];
90 void loadMap(
const Common::Path &filename,
const MapID &mapid = MAP_CURRENT);
92 void getTexture(
const ImageKey &
id,
Image &data);
93 Image &getTexture(
const ImageKey &
id);
94 bool validTexture(
const ImageKey &
id);
96 void draw(
const int &x,
const int &y,
const ImageKey &
id,
97 Common::Rect *clip =
nullptr,
const TextureFlipType &flip = FLIP_NONE);
98 void draw(
const int &x,
const int &y,
const ImageKey &
id,
99 Rect *clip,
const TextureFlipType &flip = FLIP_NONE);
105 void notifyDraw(
const int &x,
const int &y) {
106 auto *k = &getTexture(_notify);
107 draw(x - k->w() / 2, y - k->h() / 2, _notify);
116 #endif // CRAB_IMAGEMANAGER_H Definition: Rectangle.h:42
Definition: ImageManager.h:63
Definition: moveeffect.h:37
Definition: movie_decoder.h:32
Definition: TMXTileSet.h:86